[
https://issues.apache.org/jira/browse/CAMEL-17106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17430451#comment-17430451
]
Otavio Rodolfo Piske commented on CAMEL-17106:
----------------------------------------------
[~davsclaus] aha, thanks for clarifying! It hasn't been touched for a while, so
I guess may have been a leftover. In this case, I guess the right fix for the
slow test is to use the header instead of setting it in the component. Let's
reject this ticket and I'll send a fix for the test specifically.
> JMS requestTimeout seems to be ignored
> --------------------------------------
>
> Key: CAMEL-17106
> URL: https://issues.apache.org/jira/browse/CAMEL-17106
> Project: Camel
> Issue Type: Bug
> Components: camel-jms
> Affects Versions: 3.12.0
> Reporter: Otavio Rodolfo Piske
> Assignee: Otavio Rodolfo Piske
> Priority: Major
> Attachments: camel-17106-1.png
>
>
> I was looking at the CI and code trying to understand why this test [1] runs
> so much slower than the others (~20 secs) and I noticed something strange.
>
> Despite being configured to use 1 sec as the timeout [2], the value seems to
> be ignored and the request nonetheless times out only after 20 secs.
>
> Modifying the template's requestBody call to override the timeout using the
> CamelJmsRequestTimeout header seems to work-around the issue (and apparently
> fixes the test slowness as well).
>
> #
> [https://github.com/apache/camel/blob/8cd6b34e8bc753520f3153a354beb9765e3f2741/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java#L407]
> #
> [https://github.com/apache/camel/blob/8cd6b34e8bc753520f3153a354beb9765e3f2741/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java#L409]
> #
--
This message was sent by Atlassian Jira
(v8.3.4#803005)