HDDS-1081. CLOSING state containers should not be added to pipeline on SCM start.
Contributed by Lokesh Jain.
This commit is contained in:
parent
a536eb5c41
commit
4f7d32edf8
@ -112,7 +112,7 @@ public class SCMContainerManager implements ContainerManager {
|
|||||||
ContainerInfoProto.PARSER.parseFrom(entry.getValue()));
|
ContainerInfoProto.PARSER.parseFrom(entry.getValue()));
|
||||||
Preconditions.checkNotNull(container);
|
Preconditions.checkNotNull(container);
|
||||||
containerStateManager.loadContainer(container);
|
containerStateManager.loadContainer(container);
|
||||||
if (container.isOpen()) {
|
if (container.getState() == LifeCycleState.OPEN) {
|
||||||
pipelineManager.addContainerToPipeline(container.getPipelineID(),
|
pipelineManager.addContainerToPipeline(container.getPipelineID(),
|
||||||
ContainerID.valueof(container.getContainerID()));
|
ContainerID.valueof(container.getContainerID()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user