michaeljmarshall commented on issue #19320:
URL: https://github.com/apache/pulsar/issues/19320#issuecomment-1404142195

   Anecdotally, we do have a unit test to verify the behavior I described above:
   
   
https://github.com/apache/pulsar/blob/d03d28ebe2c848416745b5ef64196d846ae4f686/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/ZeroQueueSizeTest.java#L423-L456
   
   In that test, the consumer uses a listener, but the semantics are the same:
   
   1. Consumer sends flow permit requesting a message.
   2. Consumer is paused.
   3. Producer sends two messages.
   4. Consumer receives a single message.


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