fayce66 edited a comment on issue #9317:
URL: https://github.com/apache/pulsar/issues/9317#issuecomment-768876195


   OK so basically you have the same results as me now. Maybe my mistake but I 
don't understand the topic compaction as functioning like this. My 
understanding is that it should always return the last message/key, even if 
more messages have been produced in the meantime, that is the whole point. The 
consumer is not interested in past messages, only the last values, like a 
last-value queue...it defeats the purpose of topic compaction if we have to 
receive all messages the first time, and then only the last one the second 
time...what do you think? Can you try to restart consumer sub2 a second time 
without producing more messages? you should receive only last message now...
   
   The way it is working now it's like the compaction stops for a given 
subscription at the last message produced while the subscription is alive. When 
new messages are produced, it's like to topic compaction feature stays at the 
same messageId for that subscription, so that the subscription gets all the 
delta when restarted, and then the topic compaction is updated again...


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