HBASE-13731 TestReplicationAdmin should clean up MiniZKCluster resource (Stephen Jiang)
This commit is contained in:
parent
d16f349a63
commit
cb1ef915df
|
@ -28,6 +28,7 @@ import org.apache.hadoop.hbase.*;
|
||||||
import org.apache.hadoop.hbase.replication.ReplicationException;
|
import org.apache.hadoop.hbase.replication.ReplicationException;
|
||||||
import org.apache.hadoop.hbase.testclassification.ClientTests;
|
import org.apache.hadoop.hbase.testclassification.ClientTests;
|
||||||
import org.apache.hadoop.hbase.testclassification.MediumTests;
|
import org.apache.hadoop.hbase.testclassification.MediumTests;
|
||||||
|
import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
|
@ -68,6 +69,14 @@ public class TestReplicationAdmin {
|
||||||
admin = new ReplicationAdmin(conf);
|
admin = new ReplicationAdmin(conf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@AfterClass
|
||||||
|
public static void tearDownAfterClass() throws Exception {
|
||||||
|
if (admin != null) {
|
||||||
|
admin.close();
|
||||||
|
}
|
||||||
|
TEST_UTIL.shutdownMiniZKCluster();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simple testing of adding and removing peers, basically shows that
|
* Simple testing of adding and removing peers, basically shows that
|
||||||
* all interactions with ZK work
|
* all interactions with ZK work
|
||||||
|
|
Loading…
Reference in New Issue