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

[HUDI-7763] Fix that multiple jmx reporter can exist if metadata enables #11226

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

Conversation

hwani3142
Copy link

@hwani3142 hwani3142 commented May 15, 2024

Change Logs

  • allows initializing jmxReporter on multiple ports

Impact

metrics - JmxReporter

Risk level (write none, low medium or high below)

low

Documentation Update

none

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@github-actions github-actions bot added the size:S PR with lines of changes in (10, 100] label May 15, 2024
jmxReporterServer = createJmxReport(host, port);
LOG.info("Started JMX server on port " + port + ".");
break;
} catch (Exception e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we catch specific exception type here?

Copy link
Author

@hwani3142 hwani3142 May 16, 2024

Choose a reason for hiding this comment

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

Should we catch specific exception type here?

c7b4028
Callee function catches all exceptions, then rethrow to HoodieException.
Thus, check causes and log messages in detail.

Thanks for comment

- catch exception that caused by already in use port
LOG.info("Skip for initializing jmx port " + port + " because of already in use");
} else {
LOG.info("Failed to initialize jmx port " + port + ". " + e.getMessage());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

LOG.info("Failed to initialize jmx port " + port + ". ", e); ?

Copy link
Author

Choose a reason for hiding this comment

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

emit log if all unknown error occur

@hudi-bot
Copy link

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S PR with lines of changes in (10, 100]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants