mukund-thakur edited a comment on issue #1404: HDFS-13660 Copy file till the 
source file length during distcp
URL: https://github.com/apache/hadoop/pull/1404#issuecomment-530764029
 
 
   > yes. It's a change in behaviour, but probably a good one. A test will 
verify that things fail the way we expect -and will continue to do so.
   >
    I tried writing the truncate test case but truncate calls always fails 
while copy is happening with error. ( Failed to TRUNCATE_FILE /tmp/source/1/3 
for DFSClient_NONMAPREDUCE_-2094558173_166 on 127.0.0.1 because 
DFSClient_NONMAPREDUCE_-209455817
   3_166 is already the current lease holder.)
   
   > One little concern though: where does that filestatus come from? It's 
created in the mapper just before the operation, right? As if it's created when 
the list of files to copy is created (which I doubt...) then the current code 
handles the case where the file is changed between job schedule and task 
execution -that would be a visible regression, which we would have to worry 
about.
   > 
   The filestatus is created in the mapper. So i think we are good here. 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
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