[ 
https://issues.apache.org/jira/browse/HDFS-16173?focusedWorklogId=642100&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-642100
 ]

ASF GitHub Bot logged work on HDFS-16173:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Aug/21 02:13
            Start Date: 26/Aug/21 02:13
    Worklog Time Spent: 10m 
      Work Description: jianghuazhu commented on a change in pull request #3302:
URL: https://github.com/apache/hadoop/pull/3302#discussion_r696235839



##########
File path: 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CopyCommands.java
##########
@@ -329,6 +340,25 @@ private void setNumberThreads(String numberThreadsString) {
       }
     }
 
+    private void setThreadPoolQueueSize(String numThreadPoolQueueSize) {
+      if (numThreadPoolQueueSize != null) {
+        int parsedValue = Integer.parseInt(numThreadPoolQueueSize);
+        if (parsedValue < 1) {
+          LOG.warn("The value of the thread pool queue size cannot be " +
+              "less than 1, and the default value is used here. " +
+              "The default size is 1024.");
+          threadPoolQueueSize = 1024;
+        } else {
+          threadPoolQueueSize = parsedValue;
+        }
+      }
+    }
+
+    @VisibleForTesting
+    public int getThreadPoolQueueSize() {

Review comment:
       Thanks @aajisaka  for the suggestion, I will continue to work.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 642100)
    Time Spent: 4.5h  (was: 4h 20m)

> Improve CopyCommands#Put#executor queue configurability
> -------------------------------------------------------
>
>                 Key: HDFS-16173
>                 URL: https://issues.apache.org/jira/browse/HDFS-16173
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: fs
>            Reporter: JiangHua Zhu
>            Assignee: JiangHua Zhu
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 4.5h
>  Remaining Estimate: 0h
>
> In CopyCommands#Put, the number of executor queues is a fixed value, 1024.
> We should make him configurable, because there are different usage 
> environments.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to