From 650c4cead5d5465921a8bbd4d6294f515f958169 Mon Sep 17 00:00:00 2001 From: Xiaoyu Yao Date: Mon, 9 Sep 2019 15:38:11 -0700 Subject: [PATCH] HDDS-2053. Fix TestOzoneManagerRatisServer failure. Contributed by Xiaoyu Yao. (#1373) --- .../hadoop/ozone/om/ratis/TestOzoneManagerRatisServer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ratis/TestOzoneManagerRatisServer.java b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ratis/TestOzoneManagerRatisServer.java index d613d99286..68649eb244 100644 --- a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ratis/TestOzoneManagerRatisServer.java +++ b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ratis/TestOzoneManagerRatisServer.java @@ -205,6 +205,7 @@ public void verifyRaftGroupIdGenerationWithCustomOmServiceId() throws .setOMServiceId(customOmServiceId) .build(); // Starts a single node Ratis server + omRatisServer.stop(); OzoneManagerRatisServer newOmRatisServer = OzoneManagerRatisServer .newOMRatisServer(newConf, ozoneManager, nodeDetails, Collections.emptyList()); @@ -219,6 +220,7 @@ public void verifyRaftGroupIdGenerationWithCustomOmServiceId() throws RaftGroupId raftGroupId = newOmRatisServer.getRaftGroup().getGroupId(); Assert.assertEquals(uuid, raftGroupId.getUuid()); Assert.assertEquals(raftGroupId.toByteString().size(), 16); + newOmRatisServer.stop(); }