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 2019/12/18 20:20:49 UTC

[GitHub] [pulsar] mprokushenkov opened a new issue #5891: Dead letters incorrect processed for messages batch

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


With regards,
Apache Git Services

[GitHub] [pulsar] gmethvin commented on issue #5891: Dead letters incorrect processed for messages batch

Posted by GitBox <gi...@apache.org>.
gmethvin commented on issue #5891: Dead letters incorrect processed for messages batch
URL: https://github.com/apache/pulsar/issues/5891#issuecomment-570005738
 
 
   I also noticed this after reporting essentially the same issue as #5969. I’d argue it’s a bug because the consumer APIs are defined on messages, not batches. At the very least it’s a bug because the documentation does not mention batches at all and suggests only the negatively acknowledged message will be redelivered. Even if the current behavior were correctly documented, though, it makes negative acknowledgements much less useful, as it puts an extra burden on the consumer of tracking duplicates.

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


With regards,
Apache Git Services