[
https://issues.apache.org/jira/browse/HDDS-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiaoyu Yao reassigned HDDS-292:
-------------------------------
Assignee: Xiaoyu Yao
> 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: [email protected]
For additional commands, e-mail: [email protected]