[ 
https://issues.apache.org/jira/browse/HADOOP-16775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939887#comment-17939887
 ] 

Amir Shenavandeh edited comment on HADOOP-16775 at 4/1/25 4:19 AM:
-------------------------------------------------------------------

Based on some tests, regardless S3 consistency, this is still needed. We should 
also add it to S3A copy, to randomize part numbers, per copy.


was (Author: shenavandeh):
Based on some tests, regardless S3 consistency, this is still needed. We should 
also add it to HDFS copy, to randomize part numbers, per copy.

> DistCp reuses the same temp file within the task attempt for different files.
> -----------------------------------------------------------------------------
>
>                 Key: HADOOP-16775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16775
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: tools/distcp
>    Affects Versions: 3.0.0
>            Reporter: Amir Shenavandeh
>            Assignee: Amir Shenavandeh
>            Priority: Major
>              Labels: DistCp, S3, hadoop-tools
>             Fix For: 3.3.0, 3.2.2
>
>         Attachments: HADOOP-16775-v1.patch, HADOOP-16775.patch
>
>
> Hadoop DistCp reuses the same temp file name for all the files copied within 
> each task attempt and then moves them to the target name, which is also a 
> server side copy. For copies to S3, this will cause inconsistency as S3 is 
> only consistent for reads after writes, for brand new objects. There is also 
> inconsistency for contents of overwritten objects on S3.
> To avoid this, we should randomize the temp file name and for each temp file 
> use a different name.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to