You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/05/01 01:28:06 UTC

[GitHub] [pulsar] codelipenghui opened a new issue #6854: Consumer stuck with batch receive when batchingMaxMessages greater than receiverQueueSize

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:
users@infra.apache.org