Xiaoyu Yao created HDDS-292:
-------------------------------

             Summary: Fix ContainerMapping#getMatchingContainerWithPipeline
                 Key: HDDS-292
                 URL: https://issues.apache.org/jira/browse/HDDS-292
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Xiaoyu Yao
             Fix For: 0.2.1


The current code does not update the pipeline that is newly allocated 

{code}
--- 
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/ContainerMapping.java
+++ 
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/ContainerMapping.java
@@ -446,7 +446,7 @@ public ContainerWithPipeline 
getMatchingContainerWithPipeline(final long size,
         .getPipeline(containerInfo.getPipelineName(),
             containerInfo.getReplicationType());
     if (pipeline == null) {
-      pipelineSelector
+      pipeline = pipelineSelector
           .getReplicationPipeline(containerInfo.getReplicationType(),
               containerInfo.getReplicationFactor());
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to