You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2021/11/29 20:01:00 UTC
[jira] [Commented] (KARAF-7174) log:tail threads keep running after ssh exits
[ https://issues.apache.org/jira/browse/KARAF-7174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450701#comment-17450701 ]
Jean-Baptiste Onofré commented on KARAF-7174:
---------------------------------------------
No, the thread and the session close are not "connected". So, if you don't interrupt the thread or close log:tail (CTRL-C), there's no way to stop the thread. I don't see an easy way to "link" the thread with the shell session. I'm postponing this Jira for now in order for me to investigate.
> log:tail threads keep running after ssh exits
> ---------------------------------------------
>
> Key: KARAF-7174
> URL: https://issues.apache.org/jira/browse/KARAF-7174
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.3.2
> Environment: Ubuntu 20.04.2 LTS
> Clean out-of-the-box Karaf 4.3.2 distribution
> Reporter: Gabriel Andrade
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Attachments: log-tail stack trace.txt
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)