Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-2429

Shell does not clean up JLine ConsoleReader, leaks threads

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabels
    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bhavanki Bill Havanki Assign to me
            bhavanki Bill Havanki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment