HDDS-687. Exception while loading containers during SCM startup. Contributed by Lokesh Jain.

This commit is contained in:
Nandakumar 2018-10-18 18:03:33 +05:30
parent ba7d46d21c
commit eeb1d432a8
1 changed files with 4 additions and 2 deletions

View File

@ -170,8 +170,10 @@ public class SCMContainerManager implements ContainerManager {
try {
for (ContainerInfo container : containerList) {
containerStateManager.addExistingContainer(container);
pipelineSelector.addContainerToPipeline(
container.getPipelineID(), container.getContainerID());
if (container.isContainerOpen()) {
pipelineSelector.addContainerToPipeline(container.getPipelineID(),
container.getContainerID());
}
}
} catch (SCMException ex) {
LOG.error("Unable to create a container information. ", ex);