codelipenghui opened a new issue #6854:
URL: https://github.com/apache/pulsar/issues/6854


   **Describe the bug**
   Consumer stuck with batch receive when batchingMaxMessages greater than 
receiverQueueSize
   
   **To Reproduce**
   ```java
   consumer = clientProviderForTests.getPulsarClient().newConsumer()
           //.subscriptionType(SubscriptionType.Shared)
           .subscriptionName("disconnections3")
           .topic("public/default/test")
           .receiverQueueSize(500)
           
.batchReceivePolicy(BatchReceivePolicy.builder().maxNumBytes(1024*1024).maxNumMessages(3000).build())
           .subscribe();
   ```
   
   **Expected behavior**
   The consumer can consume messages when `batchingMaxMessages` greater than 
`receiverQueueSize`.
   
   **Additional context**
   version 2.5.1 and build from the master branch


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