Skip to content

Commit 4994b73

Browse files
virajjasanitasanuma
authored andcommitted
HDFS-15940. Fix TestBlockRecovery2#testRaceBetweenReplicaRecoveryAndFinalizeBlock (ADDENDUM) (apache#2874)
(cherry picked from commit 56bd968)
1 parent df99ac0 commit 4994b73

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockRecovery2.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ public void testRaceBetweenReplicaRecoveryAndFinalizeBlock()
229229
tearDown();
230230

231231
Configuration configuration = new HdfsConfiguration();
232-
configuration.set(
233-
DFSConfigKeys.DFS_DATANODE_XCEIVER_STOP_TIMEOUT_MILLIS_KEY, "1000");
232+
configuration.setLong(
233+
DFSConfigKeys.DFS_DATANODE_XCEIVER_STOP_TIMEOUT_MILLIS_KEY, 5000L);
234234
MiniDFSCluster cluster = new MiniDFSCluster.Builder(configuration)
235235
.numDataNodes(1).build();
236236
try {
@@ -257,6 +257,7 @@ public void testRaceBetweenReplicaRecoveryAndFinalizeBlock()
257257
dataNode.initReplicaRecovery(recoveringBlock);
258258
}
259259
} catch (Exception e) {
260+
LOG.error("Something went wrong.", e);
260261
recoveryInitResult.set(false);
261262
}
262263
});

0 commit comments

Comments
 (0)