lordcheng10 commented on PR #17751:
URL: https://github.com/apache/pulsar/pull/17751#issuecomment-1272251253

   > @lordcheng10
   > 
   > Great finding! It looks like the problem is after the read operation 
failed with `NonRecoverableLedgerException`, we only move the read position to 
the start position of the next ledger, but will not move the mark delete 
position. Why not just make the operation also move the mark delete position to 
the next ledger?
   > 
   > ```java
   > updateReadPosition(nexReadPosition);
   >             
cursor.asyncMarkDelete(PositionImpl.get(nexReadPosition.getLedgerId(), -1), 
callback, ctx);
   > ```
   
   When the ackType is individual, there may be unacknowledged messages ahead, 
so the markdelete position cannot be moved directly


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