-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Handle exception double #12881
Handle exception double #12881
Conversation
@liangyepianzhou:Thanks for your contribution. For this PR, do we need to update docs? |
@liangyepianzhou:Thanks for providing doc info! |
/pulsarbot run-failure-checks |
1 similar comment
/pulsarbot run-failure-checks |
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/EntryCacheImpl.java
Show resolved
Hide resolved
/pulsarbot run-failure-checks |
Good work @liangyepianzhou ! |
Fixes apache#12744 ### Motivation The exception here was handled twice, resulting in a null pointer exception. And the position will be updated twice. ### Modifications Keep the exceptionally() part and convert the whenComplete() into thenAccept().
Fixes apache#12744 ### Motivation The exception here was handled twice, resulting in a null pointer exception. And the position will be updated twice. ### Modifications Keep the exceptionally() part and convert the whenComplete() into thenAccept().
Fixes apache#12744 ### Motivation The exception here was handled twice, resulting in a null pointer exception. And the position will be updated twice. ### Modifications Keep the exceptionally() part and convert the whenComplete() into thenAccept().
Fixes #12744
Motivation
The exception here was handled twice, resulting in a null pointer exception.
And the position will be updated twice.
Modifications
Keep the exceptionally() part and convert the whenComplete() into thenAccept().
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?
no-need-doc