-
Notifications
You must be signed in to change notification settings - Fork 525
Support concurrent behavior on MetricsRetryListener
#467
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
Comments
See discussion in the PR how we have introduced an Thank you for pointing that out! |
After thinking one more time, the Feel free to contribute the fix! |
I see. I understood about the Then I will submit the pull request, please review the pull request for next release! |
MetricsRetryListener
can be thread safe?MetricsRetryListener
concurrent behavior
MetricsRetryListener
concurrent behaviorMetricsRetryListener
@artembilan I am facing the issue that should be fixed by this commit. When are you going to release it?
|
Hello Spring team. I was glad to hear that official support
MetricsRetryListener
class by this issue #458But I have a question about this class behavior.
Question
The
retryContextToSample
field is considered for reusable many retry operations.And the RetryListener can be registered by bean from
RetryConfiguration
class.If the
MetricsRetryListener
registered by bean, theMetricsRetryListener
can called by concurrent retry operations.In conclusion, my question is why
retryContextToSample
was defined toIdentityHashMap
?On
IdentityHashMap
javadoc, it doesn't support thread safe behavior.Suggestion
Can you support the thread safe behavior from the
retryContextToSample
?Discussion
Please feel free to comment on this issue. If my suggestion is wrong, then I will close this issue.
The text was updated successfully, but these errors were encountered: