hevinhsu commented on code in PR #8936:
URL: https://github.com/apache/ozone/pull/8936#discussion_r2306059088
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestFailureHandlingByClient.java:
##########
@@ -155,24 +161,36 @@ private void init() throws Exception {
objectStore.getVolume(volumeName).createBucket(bucketName);
}
- private void startCluster() throws Exception {
- init();
+ @BeforeEach
+ public void restartDownDataNodes() throws Exception {
+ if (restartDataNodes.isEmpty()) {
+ return;
+ }
+ for (DatanodeDetails dataNode : restartDataNodes) {
+ cluster.restartHddsDatanode(dataNode, false);
+ }
+ restartDataNodes.clear();
+ cluster.waitForClusterToBeReady();
}
/**
* Shutdown MiniDFSCluster.
*/
- @AfterEach
+ @AfterAll
public void shutdown() {
IOUtils.closeQuietly(client);
if (cluster != null) {
cluster.shutdown();
}
}
+// This test case must run first to avoid resetting the container.
Review Comment:
@peterxcli You're right. I followed your suggestion and the tests worked
well. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]