codelipenghui commented on PR #16841: URL: https://github.com/apache/pulsar/pull/16841#issuecomment-1197937847
> step-5 ( High light ): If the meta ledger needs to be created, create ledger will be triggered first and the current request will be put into the pending requests queue. It is possible that step 4 has been completed before the request is put into the queue, so this request will not get the callback anymore. We have synchronized (pendingMarkDeleteOps) for both create cursor failure and `internalAsyncMarkDelete`, if triggered the ledger creation means the left thread got the lock and the right thread can only get the lock after the `mdEntry` is added to the `pendingMarkDeleteOps `, no? -- 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]
