Skip to content

Commit 06ad654

Browse files
Stephen O'Donnelljojochuang
authored andcommitted
HDFS-14821. Make HDFS-14617 (fsimage sub-sections) off by default. Contributed by Stephen O'Donnell.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
1 parent 4239007 commit 06ad654

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-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
@@ -899,7 +899,7 @@ public class DFSConfigKeys extends CommonConfigurationKeys {
899899

900900
public static final String DFS_IMAGE_PARALLEL_LOAD_KEY =
901901
"dfs.image.parallel.load";
902-
public static final boolean DFS_IMAGE_PARALLEL_LOAD_DEFAULT = true;
902+
public static final boolean DFS_IMAGE_PARALLEL_LOAD_DEFAULT = false;
903903

904904
public static final String DFS_IMAGE_PARALLEL_TARGET_SECTIONS_KEY =
905905
"dfs.image.parallel.target.sections";

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@
13931393

13941394
<property>
13951395
<name>dfs.image.parallel.load</name>
1396-
<value>true</value>
1396+
<value>false</value>
13971397
<description>
13981398
If true, write sub-section entries to the fsimage index so it can
13991399
be loaded in parallel. Also controls whether parallel loading
@@ -1403,6 +1403,11 @@
14031403
Parallel loading is not compatible with image compression,
14041404
so if dfs.image.compress is set to true this setting will be
14051405
ignored and no parallel loading will occur.
1406+
Enabling this feature may impact rolling upgrades and downgrades if
1407+
the previous version does not support this feature. If the feature was
1408+
enabled and a downgrade is required, first set this parameter to
1409+
false and then save the namespace to create a fsimage with no
1410+
sub-sections and then perform the downgrade.
14061411
</description>
14071412
</property>
14081413

0 commit comments

Comments
 (0)