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

Continuation settings are only evaluated on first creation for each port/connector

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.16.2
    • Fix Version/s: 2.16.3, 2.17.0
    • Component/s: camel-jetty
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Novice

      Description

      Assume the following endpoints configured (in this order!):

      <from uri="jetty:http://0.0.0.0/myservice1/?useContinuation=false"/>
      <from uri="jetty:http://0.0.0.0/myservice2/?useContinuation=true"/>
      <from uri="jetty:http://0.0.0.0:9090/myservice3/"/>
      <from uri="jetty:http://0.0.0.0:9090/myservice4/?continuationTimeout=10000"/>

      This results in endpoints myservice1 and myservice2 NOT using continuation, and myservice4 usind the default timeout of 30seconds.

      This is especially confusing if you use something like bluprint where different bundles might use the jetty endpoint with different configurations. In such a case it is highly dependant on the start order what configuration wins that makes this issue more confusing and hard to debug.

      The cause of this is, that the configuration of the endpoint is only evaluated once when the Connector is created and then never changed as long as you do not shut down ALL endpoints of this connector.
      This can be fixed by reading the configuration on each request instead of once at connector creation.

      I have seen this issue on Camel 2.10 but the code seems not to have changed in the master until now, so I'll provide a patch for the master branch only.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              laeubi Christoph Läubrich
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: