HBASE-26815 TestFanOutOneBlockAsyncDFSOutput is flakey (#4186)

Trigger BlockReports in MiniDFSCluster after restarting datanode

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
xicm 2022-03-10 16:06:12 +08:00 committed by Duo Zhang
parent 206100f515
commit 46ca0dbba6
1 changed files with 2 additions and 0 deletions

View File

@ -220,6 +220,7 @@ public class TestFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase {
assertEquals(2, output.getPipeline().length); assertEquals(2, output.getPipeline().length);
} finally { } finally {
CLUSTER.restartDataNode(dnProp); CLUSTER.restartDataNode(dnProp);
CLUSTER.triggerBlockReports();
} }
} }
@ -250,6 +251,7 @@ public class TestFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase {
assertEquals(1, excludeDatanodeManager.getExcludeDNs().size()); assertEquals(1, excludeDatanodeManager.getExcludeDNs().size());
} finally { } finally {
CLUSTER.restartDataNode(dnProp); CLUSTER.restartDataNode(dnProp);
CLUSTER.triggerBlockReports();
} }
} }