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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.2.2, 3.3.1, 3.4.0, 3.1.5
    • Component/s: ec
    • Labels:
      None
    • Hadoop Flags:
      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

          Activity

            People

            • Assignee:
              glove747 Guo Lei
              Reporter:
              glove747 Guo Lei
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: