Skip to content

Commit

Permalink
HDDS-2053. Fix TestOzoneManagerRatisServer failure. Contributed by Xi…
Browse files Browse the repository at this point in the history
…aoyu Yao. (apache#1373)
  • Loading branch information
xiaoyuyao authored and ahussein committed Oct 29, 2019
1 parent 2c67c44 commit 944e160
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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();
}


Expand Down

0 comments on commit 944e160

Please sign in to comment.