-
Notifications
You must be signed in to change notification settings - Fork 154
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
[#1628] test(client): Fix double release ShuffleIndexResult cause exception to pass flaky test #2179
Conversation
Encountered flaky test.
|
try { | ||
this.buffer.release(); | ||
} catch (Throwable e) { | ||
LOG.warn( |
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.
Could you log the Throwable e
, too?
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.
Sure
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.
You should catch specific exception class instead of Throwable.
@jerqi Log the e too, PTAL. |
bf7314f
to
88aeb81
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.
LGTM.
@jerqi Thanks for your review! |
…se exception to pass flaky test (apache#2179) ### What changes were proposed in this pull request? (Please outline the changes and how this PR fixes the issue.) ### Why are the changes needed? - Pass the flaky test - Avoid memory leak after double release the `ShuffleIndexResult` Fix: apache#1628 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Flaky test can be fixed. (cherry picked from commit 4c14b97)
What changes were proposed in this pull request?
(Please outline the changes and how this PR fixes the issue.)
Why are the changes needed?
ShuffleIndexResult
Fix: #1628
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Flaky test can be fixed.