You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In javadoc (add docs) registered tag exception described as "the thrown back to the caller (after all the retry attempts) exception class name". But it is not exactly right due to RetryListener calls on any exception (retryable or not) and class-name of this exception will be put into corresponding label. So exception tag with value distincted from "none" can not guarantee that retryable method has failed after all retry attempts
Is sample.stop(this.retryMeterProvider.tags(retryTags).register(this.meterRegistry)); in MetricsRetryListener is thread-safe? Suppose threre are two threads T1 and T2, which are executing close on same instance of MetricsRetryListener. If T1 and T2 executes this.retryMeterProvider.tags(retryTags) and only after that register(this.meterRegistry) the results of T1 (who has called retryMeterProvider.tags first) will be overrided by T2
The text was updated successfully, but these errors were encountered:
I agree about second argument.
We just use the same instance of the Timer.Builder. So, yeah, if close() called concurrently we may end up with a race condition.
We have to use a dedicated Timer.Builder instance for each close() call.
I'm not sure though, abut your first argument.
The close() is called from the finally block of the try..catch around retry loop in the RetryTemplate.doExecute().
And the logic there is like this:
exception
described as "the thrown back to the caller (after all the retry attempts) exception class name". But it is not exactly right due toRetryListener
calls on any exception (retryable or not) and class-name of this exception will be put into corresponding label. Soexception
tag with value distincted from "none" can not guarantee that retryable method has failed after all retry attemptssample.stop(this.retryMeterProvider.tags(retryTags).register(this.meterRegistry));
in MetricsRetryListener is thread-safe? Suppose threre are two threads T1 and T2, which are executingclose
on same instance ofMetricsRetryListener
. If T1 and T2 executesthis.retryMeterProvider.tags(retryTags)
and only after thatregister(this.meterRegistry)
the results of T1 (who has called retryMeterProvider.tags first) will be overrided by T2The text was updated successfully, but these errors were encountered: