[ https://issues.apache.org/jira/browse/CAMEL-19719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-19719: -------------------------------- Affects Version/s: 4.0-M2 > camel-core - Infinite loop when maximumRedeliveries > 0 > ------------------------------------------------------- > > Key: CAMEL-19719 > URL: https://issues.apache.org/jira/browse/CAMEL-19719 > Project: Camel > Issue Type: Bug > Components: came-core > Affects Versions: 3.20.3, 3.21.0, 4.0-M2 > Reporter: Jean Lepropre > Assignee: Claus Ibsen > Priority: Critical > Fix For: 3.20.7, 3.21.1, 3.22.0, 4.0.0 > > Attachments: test.camel.yaml > > > Using the attached YAML file with Camel (JBang) *3.20.2* gives: > {noformat} > 2023-08-07 15:50:51.498 INFO 22092 --- [ main] > org.apache.camel.main.MainSupport : Apache Camel (JBang) 3.20.2 is starting > 2023-08-07 15:50:51.670 INFO 22092 --- [ main] > org.apache.camel.main.MainSupport : Using Java 17.0.7 with PID 22092. > Started by <SNIPPED> in <SNIPPED> > 2023-08-07 15:50:51.693 INFO 22092 --- [ main] > mel.cli.connector.LocalCliConnector : Camel CLI enabled (local) > 2023-08-07 15:50:54.143 INFO 22092 --- [ main] > .download.MavenDependencyDownloader : Downloaded: > org.apache.camel:camel-activemq:3.20.2 (took: 1s520ms) > 2023-08-07 15:50:54.356 INFO 22092 --- [ main] > el.impl.engine.AbstractCamelContext : Apache Camel 3.20.2 (test) is starting > 2023-08-07 15:50:54.694 INFO 22092 --- [ main] > .core.spi.resolver.ResolverProvider : Using the default address resolver as > the dns resolver could not be loaded > 2023-08-07 15:50:55.003 INFO 22092 --- [ActiveMQ Task-1] > ransport.failover.FailoverTransport : Successfully connected to > tcp://localhost:61616 > 2023-08-07 15:50:55.135 INFO 22092 --- [ main] > el.impl.engine.AbstractCamelContext : Routes startup (started:1) > 2023-08-07 15:50:55.136 INFO 22092 --- [ main] > el.impl.engine.AbstractCamelContext : Started route-4ec8 > (activemq://<SNIPPED>) > 2023-08-07 15:50:55.137 INFO 22092 --- [ main] > el.impl.engine.AbstractCamelContext : Apache Camel 3.20.2 (test) started in > 1s78ms (build:111ms init:195ms start:772ms JVM-uptime:4s) > 2023-08-07 15:51:28.671 WARN 22092 --- [ntloop-thread-1] > ssor.errorhandler.DeadLetterChannel : Failed delivery for (MessageId: > ID:<SNIPPED> on ExchangeId: F91414B5DF3A8FC-0000000000000000). On delivery > attempt: 0 caught: > io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection > refused: no further information: localhost/127.0.0.1:8080 > 2023-08-07 15:51:29.695 WARN 22092 --- [ntloop-thread-1] > ssor.errorhandler.DeadLetterChannel : Failed delivery for (MessageId: > ID:<SNIPPED> on ExchangeId: F91414B5DF3A8FC-0000000000000000). On delivery > attempt: 1 caught: > io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection > refused: no further information: localhost/127.0.0.1:8080 > 2023-08-07 15:51:30.715 WARN 22092 --- [ntloop-thread-1] > ssor.errorhandler.DeadLetterChannel : Failed delivery for (MessageId: > ID:<SNIPPED> on ExchangeId: F91414B5DF3A8FC-0000000000000000). On delivery > attempt: 2 caught: > io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection > refused: no further information: localhost/127.0.0.1:8080 > 2023-08-07 15:51:30.735 INFO 22092 --- [ActiveMQ Task-1] > ransport.failover.FailoverTransport : Successfully connected to > tcp://localhost:61616 > {noformat} > While using the same file with Camel (JBang) *3.20.3* leads to an infinite > loop: > {noformat} > 2023-08-07 15:52:42.843 INFO 24144 --- [ main] > org.apache.camel.main.MainSupport : Apache Camel (JBang) 3.20.3 is starting > 2023-08-07 15:52:43.012 INFO 24144 --- [ main] > org.apache.camel.main.MainSupport : Using Java 17.0.7 with PID 24144. > Started by <SNIPPED> in <SNIPPED> > 2023-08-07 15:52:43.036 INFO 24144 --- [ main] > mel.cli.connector.LocalCliConnector : Camel CLI enabled (local) > 2023-08-07 15:52:45.390 INFO 24144 --- [ main] > .download.MavenDependencyDownloader : Downloaded: > org.apache.camel:camel-activemq:3.20.3 (took: 1s501ms) > 2023-08-07 15:52:45.596 INFO 24144 --- [ main] > el.impl.engine.AbstractCamelContext : Apache Camel 3.20.3 (test) is starting > 2023-08-07 15:52:45.892 INFO 24144 --- [ main] > .core.spi.resolver.ResolverProvider : Using the default address resolver as > the dns resolver could not be loaded > 2023-08-07 15:52:46.222 INFO 24144 --- [ActiveMQ Task-1] > ransport.failover.FailoverTransport : Successfully connected to > tcp://localhost:61616 > 2023-08-07 15:52:46.287 INFO 24144 --- [ main] > el.impl.engine.AbstractCamelContext : Routes startup (started:1) > 2023-08-07 15:52:46.288 INFO 24144 --- [ main] > el.impl.engine.AbstractCamelContext : Started route-4ec8 > (activemq://<SNIPPED>) > 2023-08-07 15:52:46.289 INFO 24144 --- [ main] > el.impl.engine.AbstractCamelContext : Apache Camel 3.20.3 (test) started in > 985ms (build:105ms init:189ms start:691ms JVM-uptime:4s) > 2023-08-07 15:52:58.955 WARN 24144 --- [ntloop-thread-1] > ssor.errorhandler.DeadLetterChannel : Failed delivery for (MessageId: > 1D22091EB3FABD1-0000000000000000 on ExchangeId: > 1D22091EB3FABD1-0000000000000000). On delivery attempt: 0 caught: > io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection > refused: no further information: localhost/127.0.0.1:8080 > 2023-08-07 15:52:59.967 WARN 24144 --- [ntloop-thread-1] > ssor.errorhandler.DeadLetterChannel : Failed delivery for (MessageId: > 1D22091EB3FABD1-0000000000000000 on ExchangeId: > 1D22091EB3FABD1-0000000000000000). On delivery attempt: 1 caught: > io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection > refused: no further information: localhost/127.0.0.1:8080 > 2023-08-07 15:53:00.976 WARN 24144 --- [ntloop-thread-1] > ssor.errorhandler.DeadLetterChannel : Failed delivery for (MessageId: > 1D22091EB3FABD1-0000000000000000 on ExchangeId: > 1D22091EB3FABD1-0000000000000000). On delivery attempt: 1 caught: > io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection > refused: no further information: localhost/127.0.0.1:8080 > 2023-08-07 15:53:01.986 WARN 24144 --- [ntloop-thread-1] > ssor.errorhandler.DeadLetterChannel : Failed delivery for (MessageId: > 1D22091EB3FABD1-0000000000000000 on ExchangeId: > 1D22091EB3FABD1-0000000000000000). On delivery attempt: 1 caught: > io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection > refused: no further information: localhost/127.0.0.1:8080 > 2023-08-07 15:53:02.997 WARN 24144 --- [ntloop-thread-1] > ssor.errorhandler.DeadLetterChannel : Failed delivery for (MessageId: > 1D22091EB3FABD1-0000000000000000 on ExchangeId: > 1D22091EB3FABD1-0000000000000000). On delivery attempt: 1 caught: > io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection > refused: no further information: localhost/127.0.0.1:8080 > 2023-08-07 15:53:04.012 WARN 24144 --- [ntloop-thread-1] > ssor.errorhandler.DeadLetterChannel : Failed delivery for (MessageId: > 1D22091EB3FABD1-0000000000000000 on ExchangeId: > 1D22091EB3FABD1-0000000000000000). On delivery attempt: 1 caught: > io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection > refused: no further information: localhost/127.0.0.1:8080 > ...{noformat} > Behavior of Camel *3.21.0* is the same as 3.20.3 (infinite loop). -- This message was sent by Atlassian Jira (v8.20.10#820010)