Skip to content

Commit

Permalink
HBASE-26815 TestFanOutOneBlockAsyncDFSOutput is flakey (#4186)
Browse files Browse the repository at this point in the history
Trigger BlockReports in MiniDFSCluster after restarting datanode

Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
xicm authored Mar 10, 2022
1 parent 1057da8 commit 9293d6a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public void testConnectToDatanodeFailed()
assertEquals(2, output.getPipeline().length);
} finally {
CLUSTER.restartDataNode(dnProp);
CLUSTER.triggerBlockReports();
}
}

Expand Down Expand Up @@ -247,6 +248,7 @@ public void testExcludeFailedConnectToDatanode()
assertEquals(1, excludeDatanodeManager.getExcludeDNs().size());
} finally {
CLUSTER.restartDataNode(dnProp);
CLUSTER.triggerBlockReports();
}
}

Expand Down

0 comments on commit 9293d6a

Please sign in to comment.