-
Notifications
You must be signed in to change notification settings - Fork 33
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 recordPendingSuccess/FailureAndLatency
not recorded without timeout
#214
Fix recordPendingSuccess/FailureAndLatency
not recorded without timeout
#214
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HeartPattern Thanks for the PR!
Please update the copyright end year with the following command ./gradlew :spotlessApply
Can you please provide test similar to reactor.pool.CommonPoolTest#recordsPendingCountAndLatencies
f006c81
to
e5b61ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reactor/team PTAL
@violetagg, can you re-review this ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
recordPendingSuccess/FailureAndLatency
not recorded without timeout
I back ported this fix to |
recordPendingSuccess/FailureAndLatency seems not recorded properly without timeout.
If we call acquire() without timeout, timeoutTask remain as TIMEOUT_DISPOSED since AbstractPool#430 check if pendingAcquireTimeout is non-zero.