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

breakOnFirstError causes thread and memory leaks in camel-kafka

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.11.1
    • 3.11.2, 3.12.0
    • camel-kafka
    • None
    • 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_threads.png
          85 kB
          Vladimir Dobos
        2. VisualVM_leak.png
          67 kB
          Vladimir Dobos

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: