We have trouble with error handling regarding retries when camel route fails

Latest response

Hi,

When we implement error handler we get some unexpected results.

  1. First time after deploy we get 3 retries and 10 seconds between.
  2. All following problems we get 3 retries but only one retry occurrence of 10 seconds delay, not 3 as expected.
  • In our test we have the connection down, we will get connection timeout.

See attached files. Also include the blueprint.

It seems that we get some exception within the error handling? Some unexpected behavior.

First attempt (after first deploy):

2021-03-02 11:36:27,879 | INFO  | ent(0x7f52a080)-3185 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-2 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-1). On delivery attempt: 0 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-1]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:36:27,882 | INFO  | ent(0x7f52a080)-3185 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-2 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-1). On delivery attempt: 1 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-1]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:36:37,882 | INFO  | ent(0x7f52a080)-3184 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-2 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-1). On delivery attempt: 2 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-1]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:36:37,883 | INFO  | ent(0x7f52a080)-3184 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-2 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-1). On delivery attempt: 3 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-1]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:36:37,884 | INFO  | ent(0x7f52a080)-3185 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-2 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-1). On delivery attempt: 3 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-1]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:36:37,884 | INFO  | ent(0x7f52a080)-3185 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-3 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-1). On delivery attempt: 1 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-1]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:36:37,885 | INFO  | ent(0x7f52a080)-3184 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-3 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-1). On delivery attempt: 0 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-1]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:36:47,885 | INFO  | ent(0x7f52a080)-3185 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-2 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-1). On delivery attempt: 2 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-1]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:36:47,912 | INFO  | ent(0x7f52a080)-3185 | .i.s.s.WorkorderBCUT399Processor | 382 - sauna2-update-status - 1.2.12.SNAPSHOT | WorkorderBCUT399Processor : process data.
2021-03-02 11:36:47,917 | INFO  | ent(0x7f52a080)-3184 | .i.s.s.WorkorderBCUT399Processor | 382 - sauna2-update-status - 1.2.12.SNAPSHOT | WorkorderBCUT399Processor : process data.
2021-03-02 11:36:47,974 | INFO  | ent(0x7f52a080)-3184 | toDLQ                            | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

Second attempt (missing delays):

2021-03-02 11:37:35,638 | INFO  | ent(0x7f52a080)-3185 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-7 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-6). On delivery attempt: 0 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-6]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:37:35,638 | INFO  | ent(0x7f52a080)-3185 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-7 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-6). On delivery attempt: 1 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-6]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:37:45,640 | INFO  | ent(0x7f52a080)-3184 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-7 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-6). On delivery attempt: 2 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-6]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:37:45,641 | INFO  | ent(0x7f52a080)-3185 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-7 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-6). On delivery attempt: 3 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-6]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:37:45,644 | INFO  | ent(0x7f52a080)-3184 | o.a.c.p.DeadLetterChannel        | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | Failed delivery for (MessageId: ID-vffusedev-hq-ismobile-com-1614175577906-10-7 on ExchangeId: ID-vffusedev-hq-ismobile-com-1614175577906-10-6). On delivery attempt: 3 caught: org.apache.camel.CamelExchangeException: JettyClient failed cause by: Connection refused. Exchange[ID-vffusedev-hq-ismobile-com-1614175577906-10-6]. Caused by: [java.net.ConnectException - Connection refused]
2021-03-02 11:37:45,651 | INFO  | ent(0x7f52a080)-3185 | .i.s.s.WorkorderBCUT399Processor | 382 - sauna2-update-status - 1.2.12.SNAPSHOT | WorkorderBCUT399Processor : process data.
2021-03-02 11:37:45,673 | INFO  | ent(0x7f52a080)-3185 | toDLQ                            | 62 - org.apache.camel.camel-core - 2.21.0.fuse-760027-redhat-00001 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

Used versions:

FUSE

Red Hat Fuse (7.6.0.fuse-760025-redhat-00001)

[jboss@vffusetest ~]$ sudo /opt/fuse/bin/client version
[sudo] password for jboss:
Logging in as admin
4.2.6.fuse-760032-redhat-00001
[jboss@vffusetest ~]$ uname -a
Linux vffusetest 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 11 19:12:04 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
[jboss@vffusetest ~]$ java -version
openjdk version "1.8.0_262"
OpenJDK Runtime Environment (build 1.8.0_262-b10)
OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)

Best regards,
Fredrik

Attachments

Responses