You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Vitalii Tymchyshyn (JIRA)" <ji...@apache.org> on 2013/05/27 10:51:20 UTC

[jira] [Reopened] (CAMEL-6390) Route with suspended SedaConsumer can't be stopped correctly

     [ https://issues.apache.org/jira/browse/CAMEL-6390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitalii Tymchyshyn reopened CAMEL-6390:
---------------------------------------


The committed test do not show the problem, see my previous comment
                
>  Route with suspended SedaConsumer can't be stopped correctly
> -------------------------------------------------------------
>
>                 Key: CAMEL-6390
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6390
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.10.0
>            Reporter: Vitalii Tymchyshyn
>            Assignee: Claus Ibsen
>             Fix For: 2.11.1
>
>
> Route with suspended SedaConsumer can't be stopped correctly. Here is test:
> {code}
>  @Test
>     public void testOriginalSedaShutdownSuspended() throws Exception {
>         SedaEndpoint endpoint = context().getEndpoint("seda:test", SedaEndpoint.class);
>         context().addRouteDefinition(new RouteDefinition()
>                 .id("testRoute")
>                 .from(endpoint)
>                 .to("log:body")
>         );
>         Set<SedaConsumer> consumers = endpoint.getConsumers();
>         Assert.assertFalse(consumers.isEmpty());
>         for (SedaConsumer sedaConsumer: consumers) {
>             sedaConsumer.suspend();
>         }
>         Assert.assertTrue(context().stopRoute("testRoute", 2, TimeUnit.SECONDS, true));
>     }
> {code}

--
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