HDDS-687. Exception while loading containers during SCM startup. Contributed by Lokesh Jain.
This commit is contained in:
parent
ba7d46d21c
commit
eeb1d432a8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue