accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Havanki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2429) Shell does not clean up JLine ConsoleReader, leaks threads
Date Wed, 05 Mar 2014 16:52:45 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-2429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921036#comment-13921036
] 

Bill Havanki commented on ACCUMULO-2429:
----------------------------------------

Good question. I had expected so, but 1.4 and 1.5 use older versions of JLine (0.9.94 and
1.0, respectively) that don't have the thread / shutdown feature. I expect they are OK.

> Shell does not clean up JLine ConsoleReader, leaks threads
> ----------------------------------------------------------
>
>                 Key: ACCUMULO-2429
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2429
>             Project: Accumulo
>          Issue Type: Bug
>          Components: shell
>            Reporter: Bill Havanki
>            Assignee: Bill Havanki
>              Labels: memory-leak, shell, threads
>             Fix For: 1.6.0, 1.7.0
>
>
> The shell uses the JLine {{ConsoleReader}} class. That class spawns a thread on construction
(tsk-tsk) for its internal non-blocking input stream representation. If the {{ConsoleReader}}
is not shut down properly, the thread keeps running. This is particularly a problem when running
{{ShellServerIT}} under 1.6 and later; the JVM can run out of memory to allocate threads and
fail the test.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message