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
1057da8be6
commit
9293d6af2c
|
@ -217,6 +217,7 @@ public class TestFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase {
|
|||
assertEquals(2, output.getPipeline().length);
|
||||
} finally {
|
||||
CLUSTER.restartDataNode(dnProp);
|
||||
CLUSTER.triggerBlockReports();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -247,6 +248,7 @@ public class TestFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase {
|
|||
assertEquals(1, excludeDatanodeManager.getExcludeDNs().size());
|
||||
} finally {
|
||||
CLUSTER.restartDataNode(dnProp);
|
||||
CLUSTER.triggerBlockReports();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue