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

KAFKA-18078: Fix failed MetricsTest.testJMXFilter #17924

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

brandboat
Copy link
Member

related to KAFKA-18078

The root cause is that in KRaft mode, KafkaYammerMetrics.INSTANCE is configured by KafkaRaftServer [0], which is not executed by the test infrastructure. In contrast, in ZK mode, KafkaYammerMetrics.INSTANCE is configured by KafkaServer [1], so it is in the execution path of the test infrastructure.

[0] https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/KafkaRaftServer.scala#L57
[1] https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/KafkaServer.scala#L277

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@brandboat brandboat marked this pull request as draft November 23, 2024 15:31
@github-actions github-actions bot added core Kafka Broker small Small PRs labels Nov 23, 2024
@brandboat brandboat marked this pull request as ready for review November 23, 2024 17:23
@chia7712 chia7712 merged commit ccbb731 into apache:trunk Nov 24, 2024
11 of 13 checks passed
@brandboat brandboat deleted the KAFKA-18078 branch November 24, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Kafka Broker small Small PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants