Lanayx commented on issue #9557:
URL: https://github.com/apache/pulsar/issues/9557#issuecomment-789651440


   @zymap Hi! This test works, but not because the seek logic isn't broken, but 
because seek message id is stored as startMessageId in consumer and extra 
messages are ignored on receive. So basically if you have batch of 10000 
messages and do seek to the last one of the batch all 10000 will be returned 
from broker, but 9999 will be ignored due to the startMessageId. My 
understanding is that [this 
logic](https://github.com/apache/pulsar/blob/branch-2.6/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java#L1851-L1857)
 was supposed to serve for precise reset, so extra messages are not sent to the 
consumer.


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