Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17106

JMS requestTimeout seems to be ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 3.12.0
    • None
    • camel-jms
    • None
    • Unknown

    Description

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

       

      1. https://github.com/apache/camel/blob/8cd6b34e8bc753520f3153a354beb9765e3f2741/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java#L407
      1. https://github.com/apache/camel/blob/8cd6b34e8bc753520f3153a354beb9765e3f2741/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java#L409
        #

      Attachments

        1. camel-17106-1.png
          169 kB
          Otavio Rodolfo Piske

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              orpiske Otavio Rodolfo Piske
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: