hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoyu Yao (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDDS-292) Fix ContainerMapping#getMatchingContainerWithPipeline
Date Wed, 25 Jul 2018 16:18:00 GMT

     [ https://issues.apache.org/jira/browse/HDDS-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiaoyu Yao resolved HDDS-292.
-----------------------------
    Resolution: Fixed

Based on offline discussion with [~msingh], this will be fixed as part of HDDS-277. 

> 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
>            Assignee: Xiaoyu Yao
>            Priority: Major
>             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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message