-
Notifications
You must be signed in to change notification settings - Fork 962
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
Duplicate publishing of data if registry closes within one step #4357
Labels
Milestone
Comments
lenin-jaganathan
changed the title
Duplicate publishing of data if registry close within one step
Duplicate publishing of data if registry closes within one step
Nov 15, 2023
shakuzen
added
bug
A general bug
module: micrometer-core
An issue that is related to our core module
labels
Nov 15, 2023
Thanks for catching the issue. Did you have a fix you wanted to contribute for this? |
I will add a PR in some time |
Thanks. If you're busy or anything, let us know. We can work on a fix. I just figured if you have a fix in mind, we can wait for that and work on other things in the meantime. |
Was having a tough couple of weeks. Able to get back to normal now. Will add a PR for this today. |
lenin-jaganathan
added a commit
to lenin-jaganathan/micrometer
that referenced
this issue
Dec 9, 2023
lenin-jaganathan
added a commit
to lenin-jaganathan/micrometer
that referenced
this issue
Dec 9, 2023
izeye
added a commit
to izeye/micrometer
that referenced
this issue
Dec 29, 2023
marcingrzejszczak
pushed a commit
that referenced
this issue
Jan 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
https://github.com/micrometer-metrics/micrometer/blob/8d5aac964bf0f5c44d1c51cd343eaaa77ff7459c/micrometer-core/src/main/java/io/micrometer/core/instrument/step/StepMeterRegistry.java#L162C54-L165
https://github.com/micrometer-metrics/micrometer/blob/main/micrometer-core/src/main/java/io/micrometer/core/instrument/push/PushMeterRegistry.java#L40
When closing step registries before completion of the first step, there are 2 publishes happening. It is because isDataPublishedForCurrentStep() returns false when called before first publishing as lastPublishTime is 0.
The text was updated successfully, but these errors were encountered: