HDFS-14445. TestTrySendErrorReportWhenNNThrowsIOException fails in trunk. Contributed by Ayush Saxena.

This commit is contained in:
Inigo Goiri 2019-04-22 13:23:42 -07:00
parent 96e3027e46
commit 5321235fe8

View File

@ -736,7 +736,7 @@ public void testTrySendErrorReportWhenNNThrowsIOException()
Mockito.anyInt(), Mockito.anyString());
String errorString = "Can't send invalid block " + FAKE_BLOCK;
bpos.trySendErrorReport(DatanodeProtocol.INVALID_BLOCK, errorString);
Thread.sleep(10000);
GenericTestUtils.waitFor(() -> secondCallTime != 0, 100, 20000);
assertTrue("Active namenode didn't add the report back to the queue "
+ "when errorReport threw IOException", secondCallTime != 0);
} finally {