You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Bert Speckels (Jira)" <ji...@apache.org> on 2024/05/15 11:22:00 UTC
[jira] [Comment Edited] (CAMEL-20744) camel-core - Error handler redelivery to support option to break out if stopping
[ https://issues.apache.org/jira/browse/CAMEL-20744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17846582#comment-17846582 ]
Bert Speckels edited comment on CAMEL-20744 at 5/15/24 11:21 AM:
-----------------------------------------------------------------
In this case, an ongoing retry should be terminated immediately. Since the waiting time until the next redelivery is (presumably) implemented by a Thread.sleep, this would have to be interrupted.
A bit of background: This is important if the sending system (e.g. RabbitMQ) needs feedback when the message stops being delivered. In the case of RabbitMQ, for example, the message is then put back into the queue (as 'ready') to be delivered again the next time the route is available.
I believe that this behavior is already implemented in some way: It worked before switching to 'camel spring rabbitmq' component.
was (Author: JIRAUSER299339):
In this case, an ongoing retry should be terminated immediately. Since the waiting time until the next redelivery is (presumably) implemented by a Thread.sleep, this would have to be interrupted.
A bit of background: This is important if the sending system (e.g. RabbitMQ) needs feedback when the message stops being delivered. In the case of RabbitMQ, for example, the message is then put back into the queue (as 'ready') to be delivered again the next time the route is available.
> camel-core - Error handler redelivery to support option to break out if stopping
> --------------------------------------------------------------------------------
>
> Key: CAMEL-20744
> URL: https://issues.apache.org/jira/browse/CAMEL-20744
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.x
>
>
> We can maybe add an option to error handler / onException
> retryWhileStopping = true|false
> This means that Camel will stop doing retries/redeliveries when CamelContext is stopping / or that the current route is being stopped.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)