Denovo1998 commented on PR #25914:
URL: https://github.com/apache/pulsar/pull/25914#issuecomment-4641162741

   @void-ptr974 
   
   Thanks, that is a good point. The previous version was best-effort only.
   
   I updated the code to use the existing `PersistentTopic` close/delete 
read-write lock. Backlog quota eviction now checks `isClosingOrDeleting` and 
performs `skipEntries` / `markDelete` while holding the read lock; close/delete 
takes the write lock before setting the closing/deleting state. This removes 
the window between the state check and the cursor mutation with respect to the 
topic teardown state transition.


-- 
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]

Reply via email to