You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/04/13 11:23:25 UTC

[jira] [Resolved] (CAMEL-9863) loopDoWhile will loop forever if using ahc component in the loop.

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

Claus Ibsen resolved CAMEL-9863.
--------------------------------
    Resolution: Fixed

> loopDoWhile will loop forever if using ahc component in the loop.
> -----------------------------------------------------------------
>
>                 Key: CAMEL-9863
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9863
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.17.0
>            Reporter: Sanigo
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.17.1, 2.18.0
>
>
> I have tested several times. The loop condition will not be checked if ahc component is in the loop.
>         from("quartz2://jf-log/trigger3?trigger.repeatInterval=2&trigger.repeatCount=0")
>             .loopDoWhile(body().isNotEqualTo("done"))
>               .setHeader(Exchange.HTTP_METHOD, constant("GET"))
>               .to("ahc:https://www.baidu.com/")
>               .choice()
>               .when(exchangeProperty("CamelLoopIndex").isEqualTo(3))
>                 .setBody(constant("done"))
>                 .endChoice()
>               .end()
>             .end()
>             .to("mock:result");
> The loop will be infinite, the workarround is to use http component instead of ahc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)