dao-jun commented on issue #20099:
URL: https://github.com/apache/pulsar/issues/20099#issuecomment-2123050102

   I maybe understand what caused the issue, try set 
`isAckReceiptEnabled(true)` to true when create consumer.
   
   ```java
               Consumer consumer = client.newConsumer(Schema.STRING)
                   .topic(t)
                   .subscriptionName("frozen")
                   // enable ack receipt
                   .isAckReceiptEnabled(true)
                   .subscriptionType(SubscriptionType.Shared)
                   .subscribe();
   ```
   
   Then, try you test again.


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to