HDDS-1078. TestRatisPipelineProvider failing because of node count mismatch. Contributed by Mukul Kumar Singh.
This commit is contained in:
parent
965d26c9c7
commit
ed99da850e
|
@ -64,10 +64,11 @@ public class TestRatisPipelineProvider {
|
||||||
factor = HddsProtos.ReplicationFactor.ONE;
|
factor = HddsProtos.ReplicationFactor.ONE;
|
||||||
Pipeline pipeline1 = provider.create(factor);
|
Pipeline pipeline1 = provider.create(factor);
|
||||||
stateManager.addPipeline(pipeline1);
|
stateManager.addPipeline(pipeline1);
|
||||||
// New pipeline should not overlap with the previous created pipeline
|
// New pipeline should overlap with the previous created pipeline,
|
||||||
Assert.assertTrue(
|
// and one datanode should overlap between the two types.
|
||||||
CollectionUtils.intersection(pipeline.getNodes(), pipeline1.getNodes())
|
Assert.assertEquals(
|
||||||
.isEmpty());
|
CollectionUtils.intersection(pipeline.getNodes(),
|
||||||
|
pipeline1.getNodes()).size(), 1);
|
||||||
Assert.assertEquals(pipeline1.getType(), HddsProtos.ReplicationType.RATIS);
|
Assert.assertEquals(pipeline1.getType(), HddsProtos.ReplicationType.RATIS);
|
||||||
Assert.assertEquals(pipeline1.getFactor(), factor);
|
Assert.assertEquals(pipeline1.getFactor(), factor);
|
||||||
Assert.assertEquals(pipeline1.getPipelineState(),
|
Assert.assertEquals(pipeline1.getPipelineState(),
|
||||||
|
|
Loading…
Reference in New Issue