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

Netty with reuseChannel=true invokes wrong callback

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.7.2
    • 3.7.3, 3.9.0
    • camel-netty
    • None
    • Unknown

    Description

      Netty when configured with reuseChannel=true invokes wrong AsyncCallback. It invokes callback registered by first netty invocation in given route multiple times. This can be observed by debugging NettyReuseChannelTest. This seems not to cause serious problems at least in simple cases, because both callbacks (from SendProcessor) do not do much and simply continue routing. I am not sure if in more complex cases this could cause more problems.

      However there is one observable issue caused by this behavior: event notifications contain wrong endpoint and wrong time taken. I attached a test for it.

      Another problem is that this behavior makes it harder (if possible at all) to fix CAMEL-16178 for case with reuseChannel=true.

      Attachments

        1. NettyReuseChannelCallbackTest.java
          6 kB
          Krzysztof Jamróz

        Issue Links

          Activity

            People

              Unassigned Unassigned
              krzysztofjamroz Krzysztof Jamróz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: