HDFS-15940. Fix TestBlockRecovery2#testRaceBetweenReplicaRecoveryAndFinalizeBlock (ADDENDUM) (#2874)

This commit is contained in:
Viraj Jasani 2021-04-09 07:40:18 +05:30 committed by GitHub
parent 213d3deb26
commit 56bd968fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -229,8 +229,8 @@ public class TestBlockRecovery2 {
tearDown();
Configuration configuration = new HdfsConfiguration();
configuration.set(
DFSConfigKeys.DFS_DATANODE_XCEIVER_STOP_TIMEOUT_MILLIS_KEY, "1000");
configuration.setLong(
DFSConfigKeys.DFS_DATANODE_XCEIVER_STOP_TIMEOUT_MILLIS_KEY, 5000L);
MiniDFSCluster cluster = new MiniDFSCluster.Builder(configuration)
.numDataNodes(1).build();
try {
@ -257,6 +257,7 @@ public class TestBlockRecovery2 {
dataNode.initReplicaRecovery(recoveringBlock);
}
} catch (Exception e) {
LOG.error("Something went wrong.", e);
recoveryInitResult.set(false);
}
});