hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [hadoop] branch trunk updated: HDDS-1081. CLOSING state containers should not be added to pipeline on SCM start. Contributed by Lokesh Jain.
Date Tue, 12 Feb 2019 09:09:26 GMT
This is an automated email from the ASF dual-hosted git repository.

nanda pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 4f7d32e  HDDS-1081. CLOSING state containers should not be added to pipeline on SCM
start. Contributed by Lokesh Jain.
4f7d32e is described below

commit 4f7d32edf8c0e9d81809b9b881f421bb7428406a
Author: Nanda kumar <nanda@apache.org>
AuthorDate: Tue Feb 12 14:39:08 2019 +0530

    HDDS-1081. CLOSING state containers should not be added to pipeline on SCM start.
    Contributed by Lokesh Jain.
---
 .../java/org/apache/hadoop/hdds/scm/container/SCMContainerManager.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 b7848bd..93abdcc 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
@@ -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()));
       }


---------------------------------------------------------------------
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