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

Deadlock in camel netty while sending messages to multiple tcp endpoints in single route

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.4, 2.11.0
    • 2.10.5, 2.11.1, 2.12.0
    • camel-netty
    • None
    • Unknown

    Description

      we are getting the following exception when trying to use more than two netty endpoints in a single route.

      java.lang.IllegalStateException: await*() in I/O thread causes a dead lock or sudden performance drop. Use addListener() instead or call await*() from a different thread.

      Sample route :

      from("netty:tcp://localhost:7000textline=true") .bean(DummyProcessor.class)
      .to("netty:tcp://localhost:7001?textline=true") .bean(DummyProcessor.class)
      .to("netty:tcp://localhost:7002?textline=true")
      .bean(DummyProcessor.class)
      .to("netty:tcp://localhost:7003?textline=true")
      .bean(DummyProcessor.class)
      .to("netty:tcp://localhost:7004?textline=true")
      .bean(DummyProcessor.class);

      camel version : 2.11
      netty 3.6.5

      The same is working in 2.10.3 version.

      Attachments

        1. MainCamelTest.zip
          1 kB
          kiran kumar reddy

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kiranreddykasa kiran kumar reddy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: