Repository navigation
[fix][storage]fix OpAddEntry release error when exception in ManagedLedgerInterceptor - #17394
Conversation
Jason918
left a comment
There was a problem hiding this comment.
Good catch.
Left a minor suggestion.
|
@HQebupt Please provide a correct documentation label for your PR. |
|
/pulsarbot run-failure-checks |
3 similar comments
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
@codelipenghui @Technoboy- PTAL, thanks in advance. |
06f2b2b to
d49128b
Compare
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
It looks like we got many conflicts when cherry-picking it to branch-2.9. |
…edgerInterceptor (#17394)
…edgerInterceptor (apache#17394) (cherry picked from commit c6a1875) (cherry picked from commit d17079a)
Sorry, I miss the message. PTAL #17929 @mattisonchao |
Motivation
There is a redundant releases in
org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl#beforeAddEntryat line:853.It will cause the error log as follows when there is an exception in
ManagedLedgerInterceptor#beforeAddEntry.Modifications
ManagedLedgerInterceptorVerifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?
doc-not-needed