Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-7174

log:tail threads keep running after ssh exits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.3.2
    • None
    • karaf
    • None
    • Ubuntu 20.04.2 LTS

      Clean out-of-the-box Karaf 4.3.2 distribution

    Description

      When executing log:tail via Karaf's ssh connection, the created thread is not killed when the ssh connection is killed or timeouts.

      I believe that all threads launched via ssh should be killed if the session is no longer active.

      Steps to reproduce:

      • Open a ssh connection with Karaf
      • Run log:tail
      • Either close the session without exiting log:tail or wait until it timeouts in a few minutes;
      • Run shell:threads | grep log:tail on the console or another ssh connection
      • A log tail thread should still be running.

      Every time this process is repeated, a new log:tail thread will appear and stay alive.

      I've attached the return of one of my shell:thread commands.

      Attachments

        1. log-tail stack trace.txt
          1 kB
          Gabriel Andrade

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              GabrielAndrade2 Gabriel Andrade
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: