You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Dragisa Krsmanovic (Created) (JIRA)" <ji...@apache.org> on 2012/01/27 22:46:27 UTC

[jira] [Created] (CAMEL-4949) On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever

On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever
-------------------------------------------------------------------------------------

                 Key: CAMEL-4949
                 URL: https://issues.apache.org/jira/browse/CAMEL-4949
             Project: Camel
          Issue Type: Bug
          Components: camel-jms, camel-spring
    Affects Versions: 2.9.0
            Reporter: Dragisa Krsmanovic


Our route looks like this:

{code}
from("activemq:start")
   .to("direct:dir")
{code}

On shutdown, if there is a message in the direct: route, Camel will wait indefinitely for the message to finish. Regardless of the shutdown strategy.

See attached unit test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4949) On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever

Posted by "Dragisa Krsmanovic (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dragisa Krsmanovic updated CAMEL-4949:
--------------------------------------

    Attachment: CAMEL-4949.patch
    
> On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4949
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4949
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms, camel-spring
>    Affects Versions: 2.9.0
>            Reporter: Dragisa Krsmanovic
>              Labels: shutdown
>         Attachments: CAMEL-4949.patch
>
>
> Our route looks like this:
> {code}
> from("activemq:start")
>    .to("direct:dir")
> {code}
> On shutdown, if there is a message in the direct: route, Camel will wait indefinitely for the message to finish. Regardless of the shutdown strategy.
> See attached unit test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-4949) On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever

Posted by "Claus Ibsen (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-4949:
----------------------------------

    Assignee: Claus Ibsen
    
> On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4949
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4949
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms, camel-spring
>    Affects Versions: 2.9.0
>            Reporter: Dragisa Krsmanovic
>            Assignee: Claus Ibsen
>              Labels: shutdown
>         Attachments: CAMEL-4949.patch
>
>
> Our route looks like this:
> {code}
> from("activemq:start")
>    .to("direct:dir")
> {code}
> On shutdown, if there is a message in the direct: route, Camel will wait indefinitely for the message to finish. Regardless of the shutdown strategy.
> See attached unit test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4949) On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever

Posted by "Dragisa Krsmanovic (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195688#comment-13195688 ] 

Dragisa Krsmanovic commented on CAMEL-4949:
-------------------------------------------

As shown in the unit test, SedaConsumer does this correctly. It's only the JMS that keeps retrying even when the shutdown is in progress. If your direct route is set to retry for a long time (exponential backoff, many redeliveries etc.), system shutdown can take forever. Infinite redelivery is set here just as an example. 
                
> On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4949
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4949
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms, camel-spring
>    Affects Versions: 2.9.0
>            Reporter: Dragisa Krsmanovic
>            Assignee: Claus Ibsen
>              Labels: shutdown
>         Attachments: CAMEL-4949.patch
>
>
> Our route looks like this:
> {code}
> from("activemq:start")
>    .to("direct:dir")
> {code}
> On shutdown, if there is a message in the direct: route, Camel will wait indefinitely for the message to finish. Regardless of the shutdown strategy.
> See attached unit test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-4949) On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever

Posted by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-4949.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.0

Thanks for reporting. Is fixed by CAMEL-4950.
                
> On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4949
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4949
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms, camel-spring
>    Affects Versions: 2.9.0
>            Reporter: Dragisa Krsmanovic
>            Assignee: Claus Ibsen
>              Labels: shutdown
>             Fix For: 2.10.0
>
>         Attachments: CAMEL-4949.patch
>
>
> Our route looks like this:
> {code}
> from("activemq:start")
>    .to("direct:dir")
> {code}
> On shutdown, if there is a message in the direct: route, Camel will wait indefinitely for the message to finish. Regardless of the shutdown strategy.
> See attached unit test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4949) On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever

Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195535#comment-13195535 ] 

Claus Ibsen commented on CAMEL-4949:
------------------------------------

You have redelivery happening forever, this is really not a good idea.

There is already JIRA ticket to have redelivery error handler support breaking out redelivery attempts during graceful shutdown.
                
> On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4949
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4949
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms, camel-spring
>    Affects Versions: 2.9.0
>            Reporter: Dragisa Krsmanovic
>            Assignee: Claus Ibsen
>              Labels: shutdown
>         Attachments: CAMEL-4949.patch
>
>
> Our route looks like this:
> {code}
> from("activemq:start")
>    .to("direct:dir")
> {code}
> On shutdown, if there is a message in the direct: route, Camel will wait indefinitely for the message to finish. Regardless of the shutdown strategy.
> See attached unit test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4949) On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever

Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195561#comment-13195561 ] 

Claus Ibsen commented on CAMEL-4949:
------------------------------------

I created a new ticket as the other JIRA ticket is to interrupt/cancel delayed redeliveries, which is a bit harder to do.
                
> On shutdown JmsConsumer doesn't shut down direct subroutes properly and loops forever
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4949
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4949
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms, camel-spring
>    Affects Versions: 2.9.0
>            Reporter: Dragisa Krsmanovic
>            Assignee: Claus Ibsen
>              Labels: shutdown
>         Attachments: CAMEL-4949.patch
>
>
> Our route looks like this:
> {code}
> from("activemq:start")
>    .to("direct:dir")
> {code}
> On shutdown, if there is a message in the direct: route, Camel will wait indefinitely for the message to finish. Regardless of the shutdown strategy.
> See attached unit test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira