camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7601) maximumRedeliveries=-1 plus scheduledExecutorService=pool(1 thread) equals problem
Date Wed, 16 Jul 2014 08:55:04 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-7601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063298#comment-14063298
] 

Willem Jiang commented on CAMEL-7601:
-------------------------------------

You can use the asyncDelayedRedelivery() to avoid the calling of sleep method.
Did you have a chance to test it?

> maximumRedeliveries=-1 plus scheduledExecutorService=pool(1 thread) equals problem
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-7601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.12.1, 2.13.2
>            Reporter: Andrzej Gdula
>            Priority: Minor
>
> https://github.com/agdula/camel-test/blob/master/src/test/java/com/pb/psep/testbase/ThreadPoolTest.java
> Test that demonstrates a problem when
>       onException(SomeException.class).maximumRedeliveries(-1)
>     and
>       scheduledExecutorService=poolOfThreads(X)
> When there are lots of routes using single threadPool and there happen to be more than
X exceptions in X routes that will be redelivered forever
> then thread pool gets hogged and other routes are unable to process.
> Thread are stuck on org.apache.camel.processor.RedeliveryPolicy.sleep(RedeliveryPolicy.java:188)
>   If camel instead of waiting would schedule retry then it probably would solve the problem.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message