Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9369

Acknowledge messages for RabbitMQ InOut exchange when transferring exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.16.1
    • 2.16.2, 2.17.0
    • camel-rabbitmq
    • None
    • Patch Available
    • Unknown

    Description

      Currently if an exception is thrown during the processing of an InOut exchange on rabbitMQ, and both transferException=true and autoAck=false, the exception will be transferred back to the producer however the original message will remain unacknowledged. If the server is restarted, the application will attempt to reprocess the message.

      I would like to propose a patch to include a basicAck in the rabbitMQ consumer in this scenario. I’ve chosen to use a basicAck rather than a rejection given that the exception would be handled by the producer in this scenario and there should be no need to deadletter/requeue the messages on rabbitmq.

      More details on our setup here:
      http://camel.465427.n5.nabble.com/Messages-remain-unacknowledged-when-exception-thrown-during-RabbitMQ-InOut-td5773786.html

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            ewong098765 E Wong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: