You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/07/28 10:06:42 UTC

[GitHub] [pulsar] codelipenghui commented on pull request #16841: [fix][broker] ManagedCursor: mark delete no callback when create meta-ledger fail

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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org