HDDS-2053. Fix TestOzoneManagerRatisServer failure. Contributed by Xiaoyu Yao. (#1373)
This commit is contained in:
parent
d69b811ddd
commit
650c4cead5
|
@ -205,6 +205,7 @@ public class TestOzoneManagerRatisServer {
|
||||||
.setOMServiceId(customOmServiceId)
|
.setOMServiceId(customOmServiceId)
|
||||||
.build();
|
.build();
|
||||||
// Starts a single node Ratis server
|
// Starts a single node Ratis server
|
||||||
|
omRatisServer.stop();
|
||||||
OzoneManagerRatisServer newOmRatisServer = OzoneManagerRatisServer
|
OzoneManagerRatisServer newOmRatisServer = OzoneManagerRatisServer
|
||||||
.newOMRatisServer(newConf, ozoneManager, nodeDetails,
|
.newOMRatisServer(newConf, ozoneManager, nodeDetails,
|
||||||
Collections.emptyList());
|
Collections.emptyList());
|
||||||
|
@ -219,6 +220,7 @@ public class TestOzoneManagerRatisServer {
|
||||||
RaftGroupId raftGroupId = newOmRatisServer.getRaftGroup().getGroupId();
|
RaftGroupId raftGroupId = newOmRatisServer.getRaftGroup().getGroupId();
|
||||||
Assert.assertEquals(uuid, raftGroupId.getUuid());
|
Assert.assertEquals(uuid, raftGroupId.getUuid());
|
||||||
Assert.assertEquals(raftGroupId.toByteString().size(), 16);
|
Assert.assertEquals(raftGroupId.toByteString().size(), 16);
|
||||||
|
newOmRatisServer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue