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 { try {
for (ContainerInfo container : containerList) { for (ContainerInfo container : containerList) {
containerStateManager.addExistingContainer(container); containerStateManager.addExistingContainer(container);
pipelineSelector.addContainerToPipeline( if (container.isContainerOpen()) {
container.getPipelineID(), container.getContainerID()); pipelineSelector.addContainerToPipeline(container.getPipelineID(),
container.getContainerID());
}
} }
} catch (SCMException ex) { } catch (SCMException ex) {
LOG.error("Unable to create a container information. ", ex); LOG.error("Unable to create a container information. ", ex);