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

Fix race condition in MetricsHelper #5887

Merged
merged 1 commit into from
Aug 18, 2020
Merged

Fix race condition in MetricsHelper #5887

merged 1 commit into from
Aug 18, 2020

Conversation

jackjlli
Copy link
Member

Description

This PR:

  • fixes a race condition in MetricsHelper class that JmxReporterMetricsRegistryRegistrationListener could be recycled by the time when the gc thread kicks in.
  • bumps up dropwizard metrics version to 4.1.2.

The race condition can be reproduced whenever the memory pressure increases so that the gc gets triggered.

Bump up dropwizard metrics version to 4.1.2
@jackjlli jackjlli merged commit 87b5b77 into master Aug 18, 2020
@jackjlli jackjlli deleted the add-metrics-jmx branch August 18, 2020 00:52
jackjlli added a commit that referenced this pull request Aug 18, 2020
Fix race condition in MetricsHelper
Bump up dropwizard metrics version to 4.1.2

Co-authored-by: Jack Li(Analytics Engineering) <jlli@jlli-mn1.linkedin.biz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants