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

breakOnFirstError causes thread and memory leaks in camel-kafka

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.11.1
    • Fix Version/s: 3.11.2, 3.12.0
    • Component/s: camel-kafka
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When breakOnfirstError is enabled in camel-kafka, there is visible thread leak (one hung heartbeat thread per kafka client restart/route retry) in underlying kafka client, accompanied by small memory leak, for extreme example - see attached VisualVM screenshots).
      Example application used for screenshot can be found in https://github.com/vdobos-tr/camel-kafka-on-error-leak.
      We are relatively new to kafka so im unable to determine, if its issue with underlying kafka client, or problem with the way camel handles reconnect after error.

        Attachments

        1. VisualVM_leak.png
          67 kB
          Vladimir Dobos
        2. VisualVM_leak_threads.png
          85 kB
          Vladimir Dobos

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vdobos Vladimir Dobos
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: