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(); }