HDFS-9224. TestFileTruncate fails intermittently with BindException (Contributed by Brahma Reddy Battula)
(cherry picked from commit 69b025dbba
)
This commit is contained in:
parent
218aa7bba1
commit
50253c43f0
|
@ -1201,6 +1201,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HDFS-9222. Add hadoop-hdfs-client as a dependency of
|
||||
hadoop-hdfs-native-client. (Mingliang Liu via wheat9)
|
||||
|
||||
HDFS-9224. TestFileTruncate fails intermittently with BindException
|
||||
(Brahma Reddy Battula via vinayakumarb)
|
||||
|
||||
Release 2.7.2 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -58,6 +58,7 @@ import org.apache.hadoop.hdfs.protocol.LocatedBlock;
|
|||
import org.apache.hadoop.hdfs.protocol.LocatedBlocks;
|
||||
import org.apache.hadoop.hdfs.server.common.HdfsServerConstants;
|
||||
import org.apache.hadoop.hdfs.server.common.HdfsServerConstants.StartupOption;
|
||||
import org.apache.hadoop.net.ServerSocketUtil;
|
||||
import org.apache.hadoop.security.UserGroupInformation;
|
||||
import org.apache.hadoop.test.GenericTestUtils;
|
||||
import org.apache.hadoop.util.Time;
|
||||
|
@ -1226,7 +1227,9 @@ public class TestFileTruncate {
|
|||
NameNode.doRollback(conf, false);
|
||||
cluster = new MiniDFSCluster.Builder(conf).numDataNodes(DATANODE_NUM)
|
||||
.format(false)
|
||||
.nameNodePort(HdfsClientConfigKeys.DFS_NAMENODE_RPC_PORT_DEFAULT)
|
||||
.nameNodePort(
|
||||
ServerSocketUtil.getPort(
|
||||
HdfsClientConfigKeys.DFS_NAMENODE_RPC_PORT_DEFAULT, 10))
|
||||
.startupOption(o==StartupOption.ROLLBACK ? StartupOption.REGULAR : o)
|
||||
.dnStartupOption(o!=StartupOption.ROLLBACK ? StartupOption.REGULAR : o)
|
||||
.build();
|
||||
|
|
Loading…
Reference in New Issue