Skip to content

Commit 735e85a

Browse files
authored
HDFS-15610 Reduced datanode upgrade/hardlink thread from 12 to 6 (#2365)
1 parent df4006e commit 735e85a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ public class DFSConfigKeys extends CommonConfigurationKeys {
13861386
"dfs.datanode.parallel.volumes.load.threads.num";
13871387
public static final String DFS_DATANODE_BLOCK_ID_LAYOUT_UPGRADE_THREADS_KEY =
13881388
"dfs.datanode.block.id.layout.upgrade.threads";
1389-
public static final int DFS_DATANODE_BLOCK_ID_LAYOUT_UPGRADE_THREADS = 12;
1389+
public static final int DFS_DATANODE_BLOCK_ID_LAYOUT_UPGRADE_THREADS = 6;
13901390

13911391
public static final String DFS_NAMENODE_INOTIFY_MAX_EVENTS_PER_RPC_KEY =
13921392
"dfs.namenode.inotify.max.events.per.rpc";

hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3296,7 +3296,7 @@
32963296

32973297
<property>
32983298
<name>dfs.datanode.block.id.layout.upgrade.threads</name>
3299-
<value>12</value>
3299+
<value>6</value>
33003300
<description>The number of threads to use when creating hard links from
33013301
current to previous blocks during upgrade of a DataNode to block ID-based
33023302
block layout (see HDFS-6482 for details on the layout).</description>

0 commit comments

Comments
 (0)