[
https://issues.apache.org/jira/browse/HDFS-17376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17815775#comment-17815775
]
ASF GitHub Bot commented on HDFS-17376:
---------------------------------------
sadanand48 opened a new pull request, #6540:
URL: https://github.com/apache/hadoop/pull/6540
### Description of PR
If the source file is EC, distcp without preserve option creates a 1
replication file (this is not intended).
This is because for an EC file getReplication() always return 1 . Instead it
should create the file as per the default replication on the target.
### How was this patch tested?
Added a unit test
> Distcp creates Factor 1 replication file on target if Source is EC
> ------------------------------------------------------------------
>
> Key: HDFS-17376
> URL: https://issues.apache.org/jira/browse/HDFS-17376
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: distcp
> Affects Versions: 3.3.6
> Reporter: Sadanand Shenoy
> Assignee: Sadanand Shenoy
> Priority: Major
>
> If the source file is EC, distcp without preserve option creates a 1
> replication file (this is not intended).
> This is because for an EC file getReplication() always return 1 . Instead it
> should create the file as per the default replication on the target.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]