karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (KARAF-4682) avoid ConsoleSessionImpl thread running indefinitely
Date Tue, 30 Aug 2016 05:43:20 GMT

     [ https://issues.apache.org/jira/browse/KARAF-4682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Freeman Fang reassigned KARAF-4682:

    Assignee: Freeman Fang

> avoid ConsoleSessionImpl thread running indefinitely 
> -----------------------------------------------------
>                 Key: KARAF-4682
>                 URL: https://issues.apache.org/jira/browse/KARAF-4682
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
> I saw ConsoleSessionImpl thread running indefinitely in itests if the test crash, this
just leave many dead jvm process.
> This is caused by while (running) loop never exit in ConsoleSessionImpl if somehow the
container crash. 
> This line
> {code}
> command = reader.readLine(getPrompt());
> {code}
> the command is null when this error happen but ConsoleSessionImpl.close() never get invoked
because other thread which is suppose to call ConsoleSessionImpl.close()  just dead, we should
 break the loop when detect command is null. 

This message was sent by Atlassian JIRA

View raw message