diff --git a/hbase-asyncfs/src/test/java/org/apache/hadoop/hbase/io/asyncfs/TestFanOutOneBlockAsyncDFSOutput.java b/hbase-asyncfs/src/test/java/org/apache/hadoop/hbase/io/asyncfs/TestFanOutOneBlockAsyncDFSOutput.java index 3b992a853edf..d363282921c9 100644 --- a/hbase-asyncfs/src/test/java/org/apache/hadoop/hbase/io/asyncfs/TestFanOutOneBlockAsyncDFSOutput.java +++ b/hbase-asyncfs/src/test/java/org/apache/hadoop/hbase/io/asyncfs/TestFanOutOneBlockAsyncDFSOutput.java @@ -217,6 +217,7 @@ public void testConnectToDatanodeFailed() assertEquals(2, output.getPipeline().length); } finally { CLUSTER.restartDataNode(dnProp); + CLUSTER.triggerBlockReports(); } } @@ -247,6 +248,7 @@ public void testExcludeFailedConnectToDatanode() assertEquals(1, excludeDatanodeManager.getExcludeDNs().size()); } finally { CLUSTER.restartDataNode(dnProp); + CLUSTER.triggerBlockReports(); } }