Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5025

Two threads named pool-1-thread-1 and pool-2-thread-1 remains after the shutdown of a cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 0.94.0
    • None
    • IPC/RPC, test
    • None

    Description

      There are two issues with these threads:

      • there should have a better name. pool-x-thread-y is the default name given by java.util.concurrent.Executors
      • these threads should not survive to a minicluster shutdown

      They are created by org.apache.hadoop.ipc.Server$Listener (with version 0.20.205.0; the code was different before), so the first issue is a hadoop common one. It's unclear for the second one, it could be hadoop-common as well.

      Constructor for org.apache.hadoop.ipc.Server$Listener:

          public Listener() throws IOException {
            //...
            readPool = Executors.newFixedThreadPool(readThreads);  // Lack a ThreadFactory to set the names
            //...
          }
      

      Server#stop shutdowns the thread pool.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nkeywal Nicolas Liochon
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: