question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`metadata` and other extras of kind `object` not honored when using environments

See original GitHub issue

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/3400

Originally created by @tbriggs2 on 2022-04-14 20:18:50


What is the current bug behavior?

If the metadata extra is defined in the base configuration of an inherited plugin it is not respected - the metadata from the base configuration of the parent plugin is used instead.

What is the expected correct behavior?

The metadata extra from the inherited plugin definition should be used.

Steps to reproduce

Using the attached meltano.yml run

meltano --environment=prod run tap-mysql2 target-jsonl

SomeTable2 will get replicated but with replication-method=LOG_BASED. If instead you run

meltano --environment=dev run tap-mysql2 target-jsonl

SomeTable2 will be replicated using replication-method=FULL_TABLE as expected. The point being that this appears to be a problem specifically with metadata defined on the base inherited plugin only.

Note also that if you change the metadata in the base parent plugin to not use a wildcard, i.e.

    metadata:
      SchemaName-SomeTable:
        replication-method: LOG_BASED

The pipeline will fail with an error about the replication method not being defined for SomeTable2. I think that’s relevant because it shows that the wildcard isn’t overriding the inherited plugin configuration.

Further regression test

Ensure we automatically catch similar issues in the future

  • Write additional adequate test cases and submit test results
  • Test results should be reviewed by a person from the team

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
edgarrmondragoncommented, Jul 7, 2022

can you make a follow-up issue for whatever isn’t fixed in #6376 ?

@tayloramurphy done: https://github.com/meltano/meltano/issues/6380

1reaction
tayloramurphycommented, Jul 7, 2022

@edgarrmondragon sounds good - can you make a follow-up issue for whatever isn’t fixed in #6376 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to download metadata for repo 'rhel-8-for-x86_64 ...
Good afternoon I am using RED HAT for the first time, and when I am executing a command to update the yum (yum...
Read more >
Do Your App Configuration Right with Custom Metadata ...
Do Your App Configuration Right with Custom Metadata Types, Not Custom Settings ... In the 2 years since Custom Metadata Types became generally ......
Read more >
Environments and deployments - GitLab Docs
Provides a full history of deployments to each environment. Tracks your deployments, so you always know what is deployed on your servers. If...
Read more >
Defining metadata (meta.yaml) - Conda
Use environment variables . Normally the build script in build.sh or bld.bat does not pass through environment variables from the ...
Read more >
Plugins
While this extra can be managed using meltano config or environment variables ... An extractor's metadata extra holds an object describing Singer stream...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found