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:
parent
206100f515
commit
46ca0dbba6
|
@ -220,6 +220,7 @@ public class TestFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase {
|
|||
assertEquals(2, output.getPipeline().length);
|
||||
} finally {
|
||||
CLUSTER.restartDataNode(dnProp);
|
||||
CLUSTER.triggerBlockReports();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -250,6 +251,7 @@ public class TestFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase {
|
|||
assertEquals(1, excludeDatanodeManager.getExcludeDNs().size());
|
||||
} finally {
|
||||
CLUSTER.restartDataNode(dnProp);
|
||||
CLUSTER.triggerBlockReports();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue