Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(processors): Correctly setup processors #12081

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

srebhan
Copy link
Member

@srebhan srebhan commented Oct 21, 2022

resolves #12080
resolves influxdata/influxdata-docker#647

This PR fixes a processor conversion fallout leading to potentially missing metrics when using processors in combination with aggregators, here especially the dedup processor. The background is that PR #11600 changed the way processors are initialized. Before the mentioned PR new and independent instances of a processors were created to be run before and after an aggregator. #11600 then changes this to only create a single instance, shared between the processing steps (before and after the aggregator) leading to side-effects. This is especially noticeable in the dedup processor as in the second processing step (after aggregation) the same instance sees the same metric twice and removes it while no metrics was emitted to the output in the first processing step (before the aggregator), leading to completely dropping all metrics.

This PR now creates to independent instances of the processor for the two processing steps just as before #11600.

Copy link
Contributor

@powersj powersj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for jumping on this one!

@powersj
Copy link
Contributor

powersj commented Oct 21, 2022

Sorry, meant to leave a comment @srebhan need to resolve a quick conflict

@srebhan srebhan merged commit 87125f0 into influxdata:master Oct 24, 2022
dba-leshop pushed a commit to dba-leshop/telegraf that referenced this pull request Oct 30, 2022
popey pushed a commit that referenced this pull request Nov 2, 2022
@srebhan srebhan deleted the issue-docker-647 branch November 7, 2022 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug plugin/processor regression something that used to work, but is now broken
Projects
None yet
2 participants