Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14367

EC: Parameter maxPoolSize in striped reconstruct thread pool isn't affecting number of threads

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.2.2, 3.3.1, 3.4.0
    • ec
    • None
    • Reviewed

    Description

      The workQueue length wasn't specified, so the thread number never be increase.

      The thread number increase to maximumPoolSize only when the workQueue is full.

      file location: org/apache/hadoop/hdfs/server/datanode/erasurecode/ErasureCodingWorker.java

      private void initializeStripedBlkReconstructionThreadPool(int numThreads) {
        LOG.debug("Using striped block reconstruction; pool threads={}",
            numThreads);
        stripedReconstructionPool = DFSUtilClient.getThreadPoolExecutor(2,
            numThreads, 60, new LinkedBlockingQueue<>(),
            "StripedBlockReconstruction-", false);
        stripedReconstructionPool.allowCoreThreadTimeOut(true);
      }

      Attachments

        1. HDFS-14367.001.patch
          1 kB
          Guo Lei

        Issue Links

          Activity

            People

              glove747 Guo Lei
              glove747 Guo Lei
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: