hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject hadoop git commit: HDDS-687. Exception while loading containers during SCM startup. Contributed by Lokesh Jain.
Date Thu, 18 Oct 2018 12:34:45 GMT
Repository: hadoop
Updated Branches:
  refs/heads/ozone-0.3 ba7d46d21 -> eeb1d432a


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


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/eeb1d432
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/eeb1d432
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/eeb1d432

Branch: refs/heads/ozone-0.3
Commit: eeb1d432a8c5e822d1737bab79448d06092a736d
Parents: ba7d46d
Author: Nandakumar <nanda@apache.org>
Authored: Thu Oct 18 18:03:33 2018 +0530
Committer: Nandakumar <nanda@apache.org>
Committed: Thu Oct 18 18:03:33 2018 +0530

----------------------------------------------------------------------
 .../apache/hadoop/hdds/scm/container/SCMContainerManager.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/eeb1d432/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/SCMContainerManager.java
----------------------------------------------------------------------
diff --git a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/SCMContainerManager.java
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/SCMContainerManager.java
index 9d6cadb..ec2a8d0 100644
--- a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/SCMContainerManager.java
+++ b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/SCMContainerManager.java
@@ -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);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message