CamelRedeliveryCounter not increasing after 2, no matter what's the value of maximumRedeliveries, is it bug?

本秂侑毒 提交于 2019-12-13 04:07:44

问题


Though it seems like sort of bug, but would like to confirm if somebody came across this situation in Apache Camel version 2.18.1.redhat-000021, No matter what's the value for maximumRedeliveries, route on failure is only being tried twice.

errorHandler(deadLetterChannel("amq:queue:ENTDLQ").maximumRedeliveries(5).useOriginalMessage()
            .onRedelivery((Exchange e) ->{
                log.info("--------------- Re-delivered..." + e.getIn().getHeaders());
            })
            .redeliveryDelay(2000).retryAttemptedLogLevel(LoggingLevel.WARN));

Logs below

On delivery attempt: 0 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://0.0.0.0:0/someservice with statusCode: 404

--------------- Re-delivered...{CamelJmsDeliveryMode=2, CamelRedelivered=true, CamelRedeliveryCounter=1, CamelRedeliveryMaxCounter=5, JMSCorrelationID=Camel-ID-Shoaibs-MacBook-Pro-local-56371-1518552634307-0-6}

On delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://0.0.0.0:0/someservice with statusCode: 404

--------------- Re-delivered...{CamelJmsDeliveryMode=2, CamelRedelivered=true, CamelRedeliveryCounter=2, CamelRedeliveryMaxCounter=5, JMSCorrelationID=Camel-ID-Shoaibs-MacBook-Pro-local-56371-1518552634307-0-6}

来源:https://stackoverflow.com/questions/48774952/camelredeliverycounter-not-increasing-after-2-no-matter-whats-the-value-of-max

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!