wangjialing218 opened a new pull request #9136:
URL: https://github.com/apache/pulsar/pull/9136


   ### Motivation
   Fixes #9057
   
   When current ledger closed, if there is no incoming traffic, the read 
position of the cursor is still point to the last entry of the closed ledger,  
that casue the `slowestReaderLedgerId` point to the closed ledger in 
`internalTrimConsumedLedgers()` and fail to delete the closed ledger.
   
   ### Modifications
   When close current ledger, if cursor's read position point to the last entry 
of current ledger, move the position to the new created ledger. 
   
   ### Verifying this change
   add test case: testDeletionAfterLedgerClosedAndRetention()
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to