yapxue commented on PR #17182:
URL: https://github.com/apache/pulsar/pull/17182#issuecomment-1221700238

   
   
   
   > the doc for `Consumer#pause` is
   > 
   > ```
   > /**
   >  * Stop requesting new messages from the broker until {@link #resume()} is 
called. Note that this might cause
   >  * {@link #receive()} to block until {@link #resume()} is called and new 
messages are pushed by the broker.
   >  */
   > ```
   > 
   > it doesn't say anything about stop receiving message instantly, I think 
current behavior is acceptable?
   
   User may expect stop receive instanly. Is it possible to change the api doc?
   For example in kafka, after pause is invoked, consumer just have empty poll 
and prefeched messages stay in cache. This mismatched behavior may surprise 
users migrated from kafka.


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