Skip to content

KAFKA-7516: Attempt to dynamically load ManagementFactory #19764

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

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

Conversation

gtbX
Copy link

@gtbX gtbX commented May 19, 2025

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

With this change, it's no longer necessary to stub out JMX classes on Android. The "metric.reporters" configuration should be set to an empty string as well, since the default implementation also relies on nonexistent classes.

Also added test cases for getting the MBeanServer instance.

@github-actions github-actions bot added triage PRs from the community clients small Small PRs labels May 19, 2025
@gtbX
Copy link
Author

gtbX commented May 19, 2025

I originally submitted this PR as #17969, but I haven't been able to get back to it until now, and I don't see a way to re-open it. Also not sure who to tag for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clients small Small PRs triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant