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-9863) loopDoWhile will loop forever if using ahc component in the loop.
Date Wed, 13 Apr 2016 09:05:25 GMT

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

Claus Ibsen commented on CAMEL-9863:
------------------------------------

Thanks I have re produced the issue and its a bug in the do while loop

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

Mime
View raw message