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
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ public class TestBPOfferService {
Mockito.anyInt(), Mockito.anyString()); Mockito.anyInt(), Mockito.anyString());
String errorString = "Can't send invalid block " + FAKE_BLOCK; String errorString = "Can't send invalid block " + FAKE_BLOCK;
bpos.trySendErrorReport(DatanodeProtocol.INVALID_BLOCK, errorString); 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 " assertTrue("Active namenode didn't add the report back to the queue "
+ "when errorReport threw IOException", secondCallTime != 0); + "when errorReport threw IOException", secondCallTime != 0);
} finally { } finally {