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

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

                Author: ASF GitHub Bot
            Created on: 06/Apr/21 08:23
            Start Date: 06/Apr/21 08:23
    Worklog Time Spent: 10m 
      Work Description: qizhu-lucas commented on a change in pull request #2833:
URL: https://github.com/apache/hadoop/pull/2833#discussion_r607637557



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java
##########
@@ -836,6 +836,10 @@
   public static final int     DFS_DATANODE_DIRECTORYSCAN_INTERVAL_DEFAULT = 
21600;
   public static final String  DFS_DATANODE_DIRECTORYSCAN_THREADS_KEY = 
"dfs.datanode.directoryscan.threads";
   public static final int     DFS_DATANODE_DIRECTORYSCAN_THREADS_DEFAULT = 1;
+  public static final String  DFS_DATANODE_RECONCILE_BLOCKS_BATCH_SIZE = 
"dfs.datanode.reconcile.blocks.batch.size";
+  public static final int     DFS_DATANODE_RECONCILE_BLOCKS_BATCH_SIZE_DEFAULT 
= 1000;
+  public static final String  DFS_DATANODE_RECONCILE_BLOCKS_BATCH_INTERVAL = 
"dfs.datanode.reconcile.blocks.batch.interval";
+  public static final int     
DFS_DATANODE_RECONCILE_BLOCKS_BATCH_INTERVAL_DEFAULT = 2000;

Review comment:
       Fixed it in latest PR.

##########
File path: hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml
##########
@@ -873,6 +873,22 @@
   </description>
 </property>
 
+<property>
+  <name>dfs.datanode.reconcile.blocks.batch.size</name>
+  <value>1000</value>
+  <description>Run reconcile to checkAndUpdate with batch,

Review comment:
       Changed in latest PR.




-- 
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.

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


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

    Worklog Id:     (was: 577408)
    Time Spent: 1h 20m  (was: 1h 10m)

> Make DirectoryScanner reconcile blocks batch size and interval between batch 
> configurable.
> ------------------------------------------------------------------------------------------
>
>                 Key: HDFS-15934
>                 URL: https://issues.apache.org/jira/browse/HDFS-15934
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Qi Zhu
>            Assignee: Qi Zhu
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> HDFS-14476 Make this batch to avoid lock too much time, but different cluster 
> has different demand, we should make batch size and batch interval 
> configurable.



--
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