HDDS-1081. CLOSING state containers should not be added to pipeline on SCM start.

Contributed by Lokesh Jain.
This commit is contained in:
Nanda kumar 2019-02-12 14:39:08 +05:30
parent a536eb5c41
commit 4f7d32edf8
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ public class SCMContainerManager implements ContainerManager {
ContainerInfoProto.PARSER.parseFrom(entry.getValue()));
Preconditions.checkNotNull(container);
containerStateManager.loadContainer(container);
if (container.isOpen()) {
if (container.getState() == LifeCycleState.OPEN) {
pipelineManager.addContainerToPipeline(container.getPipelineID(),
ContainerID.valueof(container.getContainerID()));
}