mprokushenkov opened a new issue #5891: Dead letters incorrect processed for 
messages batch
URL: https://github.com/apache/pulsar/issues/5891
 
 
   **Describe the bug**
   Producer produces 10 messages. Consumer with set deads letters policy acks 9 
messages and 1 nacks. This will lead to all 10 messages coming to dead letters 
topic.
   
   **To Reproduce**
   I'm testing scenario where producer sents messages using batch. Consumer 
with enabled dead letters policy acks all messages but nacks one message. Then 
another consumer receives messages from dead letters topic.
   
   Steps to reproduce the behavior:
   1. Instanciate producer with enabled batching
   2. Instanciate consumer with enabled dead letters policy (maxRedeliverCount 
should be equals 0)
   3. Instanciate consumer for receiving messages from dead letters topic
   4. Send 10 messages
   5. Receive all messages and ack first 9 but nack for last (10)
   6. Receive messages from dead letters queue
   
   **Expected behavior**
   I expect that only nacked (10) message will be received from dead letters 
queue.
   
   **Screenshots**
   Here is a screenshot of log messages produced by steps specified above:
   
   
![image](https://user-images.githubusercontent.com/15924144/71119808-0ea64e80-21ec-11ea-934f-60d88d8cb3c3.png)
   
   In [Step 3] only last (10) message should be received.
   
   **Desktop (please complete the following information):**
    - OS: Windows
    - Environment: docker
    - Pulsar version: 2.4.1
   
   **Additional context**
   No additional context.
   

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


With regards,
Apache Git Services

Reply via email to