Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
import org.apache.hadoop.ozone.MiniOzoneHAClusterImpl;
import org.apache.hadoop.ozone.om.OzoneManager;
import org.apache.ratis.protocol.RaftPeer;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;

import java.io.IOException;
import java.util.ArrayList;
Expand All @@ -43,6 +44,7 @@
/**
* Test transferLeadership with SCM HA setup.
*/
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class TestTransferLeadershipShell {
private MiniOzoneHAClusterImpl cluster = null;
private OzoneConfiguration conf;
Expand All @@ -58,7 +60,7 @@ public class TestTransferLeadershipShell {
*
* @throws IOException Exception
*/
@BeforeEach
@BeforeAll
public void init() throws Exception {
conf = new OzoneConfiguration();
omServiceId = "om-service-test1";
Expand All @@ -78,7 +80,7 @@ public void init() throws Exception {
/**
* Shutdown MiniDFSCluster.
*/
@AfterEach
@AfterAll
public void shutdown() {
if (cluster != null) {
cluster.shutdown();
Expand Down