eolivelli commented on pull request #12071:
URL: https://github.com/apache/pulsar/pull/12071#issuecomment-921518028


   In order to fall into the case that you are fixing here the topic 
lastPosition should point to a ledger that does not exist anymore.
   You found evidence that the ledger has been "trimmed".
   
   From the logs you reported it looks like we are falling into a case in which 
we trim the ledger and we know that this will impact lastMessageId.
   See here
   
https://github.com/apache/pulsar/blob/d41973454964ef4466df5e192c0d806496473293/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java#L2435
   
   Maybe you can look into the tests relevant to the commit that introduced 
that comment and take inspiration to reproduce the problem
   
   


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