HDFS-15559. Complement initialize member variables in TestHdfsConfigFields#initializeMemberVariables. Contributed by Lisheng Sun.

This commit is contained in:
He Xiaoqiao 2020-09-15 12:05:04 +08:00
parent 65df30bad6
commit 924959088e
2 changed files with 12 additions and 2 deletions

View File

@ -1236,6 +1236,14 @@
restarts. Defaults to 10 minutes.</description> restarts. Defaults to 10 minutes.</description>
</property> </property>
<property>
<name>dfs.client.write.recover.lease.on.close.exception</name>
<value>false</value>
<description>
Set to true to call recoverLease operation automatically when DFSOutputSteam closing encounters exception.
</description>
</property>
<property> <property>
<name>dfs.namenode.checkpoint.dir</name> <name>dfs.namenode.checkpoint.dir</name>
<value>file://${hadoop.tmp.dir}/dfs/namesecondary</value> <value>file://${hadoop.tmp.dir}/dfs/namesecondary</value>

View File

@ -43,8 +43,10 @@ public class TestHdfsConfigFields extends TestConfigurationFieldsBase {
configurationClasses = new Class[] { HdfsClientConfigKeys.class, configurationClasses = new Class[] { HdfsClientConfigKeys.class,
HdfsClientConfigKeys.Failover.class, HdfsClientConfigKeys.Failover.class,
HdfsClientConfigKeys.StripedRead.class, DFSConfigKeys.class, HdfsClientConfigKeys.StripedRead.class, DFSConfigKeys.class,
HdfsClientConfigKeys.BlockWrite.class, HdfsClientConfigKeys.BlockWrite.class, HdfsClientConfigKeys.Write.class,
HdfsClientConfigKeys.Read.class, HdfsClientConfigKeys.Read.class, HdfsClientConfigKeys.HedgedRead.class,
HdfsClientConfigKeys.ShortCircuit.class,
HdfsClientConfigKeys.Retry.class, HdfsClientConfigKeys.Mmap.class,
HdfsClientConfigKeys.BlockWrite.ReplaceDatanodeOnFailure.class }; HdfsClientConfigKeys.BlockWrite.ReplaceDatanodeOnFailure.class };
// Set error modes // Set error modes