camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6196) setting DefaultShutdownStrategy.setTimeout(0L) may cause infinite timeout
Date Thu, 21 Mar 2013 15:45:15 GMT

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

Claus Ibsen commented on CAMEL-6196:
------------------------------------

Per are you working on a patch? Seems like we should either deny setting the timeout as 0
or negative (eg must be positive).
Or all to have unlimited timeout (I guess this can be a bit dangerous, as if a message is
stuck, you would need to kill the processor or have trouble getting the Camel app stopped/killed)
                
> setting DefaultShutdownStrategy.setTimeout(0L) may cause infinite timeout
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-6196
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6196
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.4
>            Reporter: Per Jørgen Walstrøm
>            Priority: Trivial
>              Labels: shutdown
>
> defaultShutdownStrategy.setTimeout(0L);
> may give the following when shutting down and inflight exchanges do not complete
> [Camel (camel) thread #2 - ShutdownTask] INFO org.apache.camel.impl.DefaultShutdownStrategy
- Waiting as there are still 2 inflight and pending exchanges to complete, timeout in 0 seconds.
> [Camel (camel) thread #2 - ShutdownTask] INFO org.apache.camel.impl.DefaultShutdownStrategy
- Waiting as there are still 2 inflight and pending exchanges to complete, timeout in -1 seconds.
> [Camel (camel) thread #2 - ShutdownTask] INFO org.apache.camel.impl.DefaultShutdownStrategy
- Waiting as there are still 2 inflight and pending exchanges to complete, timeout in -2 seconds.
> [...]
> [Camel (camel) thread #2 - ShutdownTask] INFO org.apache.camel.impl.DefaultShutdownStrategy
- Waiting as there are still 2 inflight and pending exchanges to complete, timeout in -323
seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message