codelipenghui commented on issue #15705:
URL: https://github.com/apache/pulsar/issues/15705#issuecomment-1134068161

   > If a topic has no consumers, and a backlog of message index:key pairs 0:a, 
1:a, 2:a, 3:b, 4:b, 5:b, and a KeyShared consumer c1 joins with a receiver 
queue size of 1 and gets message 0, why would we prevent a new consumer c2 from 
joining and getting messages 3-5? That doesn't compromise key ordering in any 
way.
   
   Yes, it will not break the key shared semantics, but it's an implementation 
tradeoff, the current implementation doesn't need to maintain the state for 
each key since a topic might have a huge number of keys.
   
   The behavior you described is expected for the current implementation(maybe 
not the best solution for now).


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