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

Filter out duplicate JMX registration message #19440

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

cescoffier
Copy link
Member

Filter out duplicate registration messages when the Kafka client tries to register a producer/consumer/admin with an already used id. This is done in the Kafka connector extension as it's likely going to happen with the connector which use the channel name as id. When using the bare Kafka client, the user must set the id. The filter is only applied in dev and test modes.

Fix #19045.

…s to register a producer/consumer/admin with an already used id. This is done in the Kafka connector extension as it's likely going to happen with the connector which use the channel name as id. When using the bare Kafka client, the user must set the id. The filter is only applied in dev and test modes.
@gsmet
Copy link
Member

gsmet commented Aug 17, 2021

I have a question: if hidden in test or dev mode, won't the developer have a bad surprise when pushing to production.

@cescoffier
Copy link
Member Author

It shouldn't, but I wanted to keep "prod" just in case. However, we can hide it everywhere.

For the context, the objects are registered in JMX, and when using the continuous tests, two applications run concurrently, leading to the double registration.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Ah, OK, if it's specific to that, it makes perfect sense. Let's merge and we'll see if someone complains.

@gsmet gsmet merged commit 5372f5a into quarkusio:main Aug 17, 2021
@quarkus-bot quarkus-bot bot added this to the 2.2 - main milestone Aug 17, 2021
@gsmet gsmet modified the milestones: 2.2 - main, 2.1.3.Final Aug 17, 2021
@cescoffier cescoffier deleted the fix-19045 branch August 17, 2021 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kafka JMX registration causes issues with continuous testing
2 participants