AnonHxy opened a new pull request, #16720: URL: https://github.com/apache/pulsar/pull/16720
### Motivation * Fix https://github.com/apache/pulsar/issues/16665 * The root cause is that: When we called `ManagedLedgerImpl#updateLedgersIdsComplete` -> `OpAddEntry#initiate`, and then If `ledger.asyncAddEntry`(L140) callback successfully, the `OpAddEntry` state will be `COMPLETED` instead of `INITIATED` https://github.com/apache/pulsar/blob/a1b8476e40b6a40e82062915d13e4dc9d7dff9cb/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java#L125-L140 ### Modifications * Fix https://github.com/apache/pulsar/issues/16665 ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Documentation Check the box below or label this PR directly. Need to update docs? - [ ] `doc-required` (Your PR needs to update docs and you will update later) - [x] `doc-not-needed` (Please explain why) - [ ] `doc` (Your PR contains doc changes) - [ ] `doc-complete` (Docs have been already added) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
