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 multiple [Producer name] tags on failures #910

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

ojab
Copy link
Contributor

@ojab ojab commented Jul 30, 2021

On rescue Kafka::Error we're rerunning the whole method block
including @logger.push_tags(@producer.to_s), but clearing tags
only in ensure which is not run on retry, so each retry adds
another one [Producer name] to tags and, as a consequence, all
the log messages after that.

@ojab ojab force-pushed the fixup_infinite_tags branch from 107d507 to 9121246 Compare July 30, 2021 10:01
On `rescue Kafka::Error` we're rerunning the whole method block
including `@logger.push_tags(@producer.to_s)`, but clearing tags
only in `ensure` which is not run on `retry`
@ojab ojab force-pushed the fixup_infinite_tags branch from 9121246 to 68b8761 Compare July 30, 2021 10:04
@ojab
Copy link
Contributor Author

ojab commented Jul 30, 2021

CI failures look unrelated.

@ojab ojab marked this pull request as ready for review July 30, 2021 10:25
Copy link
Contributor

@dasch dasch left a comment

Choose a reason for hiding this comment

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

Thanks!

@dasch dasch merged commit 56b5713 into zendesk:master Aug 25, 2021
@ojab ojab deleted the fixup_infinite_tags branch August 25, 2021 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants