Skip to content

Commit 2a2bcd2

Browse files
committed
fix failed unit tests.
1 parent aca8b62 commit 2a2bcd2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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
@@ -3910,7 +3910,7 @@
39103910

39113911
<property>
39123912
<name>dfs.client.ec.failed.write.block.tolerated</name>
3913-
<value></value>
3913+
<value>2147483647</value>
39143914
<description>
39153915
Provide extra tolerated failed streamer for ec policy to prevent
39163916
the potential data loss. For example, if we use RS-6-3-1024K ec policy.

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestHdfsConfigFields.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public void initializeMemberVariables() {
4747
HdfsClientConfigKeys.Read.class, HdfsClientConfigKeys.HedgedRead.class,
4848
HdfsClientConfigKeys.ShortCircuit.class,
4949
HdfsClientConfigKeys.Retry.class, HdfsClientConfigKeys.Mmap.class,
50-
HdfsClientConfigKeys.BlockWrite.ReplaceDatanodeOnFailure.class };
50+
HdfsClientConfigKeys.BlockWrite.ReplaceDatanodeOnFailure.class,
51+
HdfsClientConfigKeys.Write.ECRedunency.class};
5152

5253
// Set error modes
5354
errorIfMissingConfigProps = true;

0 commit comments

Comments
 (0)