You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by bh...@apache.org on 2020/08/04 03:17:45 UTC
[hadoop-ozone] branch master updated: HDDS-3446. Enable
TestOzoneManagerRestart and address any failure. (#1279)
This is an automated email from the ASF dual-hosted git repository.
bharat pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new aad9c27 HDDS-3446. Enable TestOzoneManagerRestart and address any failure. (#1279)
aad9c27 is described below
commit aad9c27c7420748fa38d348aaea46e6a37fa84a6
Author: prashantpogde <pr...@gmail.com>
AuthorDate: Mon Aug 3 20:17:31 2020 -0700
HDDS-3446. Enable TestOzoneManagerRestart and address any failure. (#1279)
---
.../hadoop/ozone/om/TestOzoneManagerRestart.java | 26 ++++++++++------------
1 file changed, 12 insertions(+), 14 deletions(-)
diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerRestart.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerRestart.java
index 6058fad..8938cfa 100644
--- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerRestart.java
+++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerRestart.java
@@ -41,11 +41,10 @@ import static org.apache.hadoop.ozone.OzoneConfigKeys.OZONE_ACL_ENABLED;
import static org.apache.hadoop.ozone.OzoneConfigKeys.OZONE_ADMINISTRATORS;
import static org.apache.hadoop.ozone.OzoneConfigKeys.OZONE_ADMINISTRATORS_WILDCARD;
import static org.apache.hadoop.ozone.OzoneConfigKeys.OZONE_OPEN_KEY_EXPIRE_THRESHOLD_SECONDS;
-import org.junit.After;
+import org.junit.AfterClass;
import org.junit.Assert;
import static org.junit.Assert.fail;
-import org.junit.Before;
-import org.junit.Ignore;
+import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;
@@ -54,16 +53,15 @@ import org.junit.rules.Timeout;
* Test some client operations after cluster starts. And perform restart and
* then performs client operations and check the behavior is expected or not.
*/
-@Ignore
public class TestOzoneManagerRestart {
- private MiniOzoneCluster cluster = null;
- private OzoneConfiguration conf;
- private String clusterId;
- private String scmId;
- private String omId;
+ private static MiniOzoneCluster cluster = null;
+ private static OzoneConfiguration conf;
+ private static String clusterId;
+ private static String scmId;
+ private static String omId;
@Rule
- public Timeout timeout = new Timeout(60000);
+ public Timeout timeout = new Timeout(240000);
/**
* Create a MiniDFSCluster for testing.
@@ -72,8 +70,8 @@ public class TestOzoneManagerRestart {
*
* @throws IOException
*/
- @Before
- public void init() throws Exception {
+ @BeforeClass
+ public static void init() throws Exception {
conf = new OzoneConfiguration();
clusterId = UUID.randomUUID().toString();
scmId = UUID.randomUUID().toString();
@@ -94,8 +92,8 @@ public class TestOzoneManagerRestart {
/**
* Shutdown MiniDFSCluster.
*/
- @After
- public void shutdown() {
+ @AfterClass
+ public static void shutdown() {
if (cluster != null) {
cluster.shutdown();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org