From 340bbaf8bfba1368e45dbcefd64937ef8afe7a9c Mon Sep 17 00:00:00 2001 From: Bharat Viswanadham Date: Mon, 22 Jul 2019 10:23:48 -0700 Subject: [PATCH] HDDS-1840. Fix TestSecureOzoneContainer. (#1135) --- .../ozone/container/ozoneimpl/TestSecureOzoneContainer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/ozoneimpl/TestSecureOzoneContainer.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/ozoneimpl/TestSecureOzoneContainer.java index c086f31925..fca449bd75 100644 --- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/ozoneimpl/TestSecureOzoneContainer.java +++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/ozoneimpl/TestSecureOzoneContainer.java @@ -26,6 +26,7 @@ import org.apache.hadoop.hdds.security.exception.SCMSecurityException; import org.apache.hadoop.hdds.security.token.OzoneBlockTokenIdentifier; import org.apache.hadoop.hdds.security.x509.SecurityConfig; +import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem; import org.apache.hadoop.ozone.OzoneConfigKeys; import org.apache.hadoop.hdds.conf.OzoneConfiguration; import org.apache.hadoop.ozone.client.CertificateClientTestImpl; @@ -110,6 +111,7 @@ public static Collection blockTokenOptions() { @Before public void setup() throws Exception { + DefaultMetricsSystem.setMiniClusterMode(true); conf = new OzoneConfiguration(); String ozoneMetaPath = GenericTestUtils.getTempPath("ozoneMeta");