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 GitHub
parent 1057da8be6
commit 9293d6af2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}
}