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-7516: Attempt to dynamically load ManagementFactory class #17969

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

gtbX
Copy link

@gtbX gtbX commented Nov 28, 2024

Fail gracefully if not found. This can be the case on Android.

With this change, it's no longer necessary for me to stub out JMX classes on Android. I do still need to supply a custom metric.reporters configuration to override the default of org.apache.kafka.common.metrics.JmxReporter, but that's just configuration.

Unfortunately, I don't know of a way to test a static initialization block in a unit test.

Committer Checklist (excluded from commit message)

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

gtbX added 2 commits November 27, 2024 16:14
Fail gracefully if not found. This can be the case on Android.
@github-actions github-actions bot added clients small Small PRs labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant