mukund-thakur commented on issue #1404: HDFS-13660 Copy file till the source 
file length during distcp
URL: https://github.com/apache/hadoop/pull/1404#issuecomment-530394268
 
 
   > I also need to know what happens when a file is truncated. Before it would 
probably just finish and be happy one read() returned -1. Now it can 
differentiate between read-all-data and read-less-data. This is good-and we 
need to take advantage of it by failing when this happens (at the very least, 
reporting it).Can you add a test which uses truncate() to force this
   > 
   I checked the behaviour of distcp on a cluster on what happens when truncate 
call is made while copy is running. 
   * With the current trunk distcp it runs fine and copies the data  till a 
particular length. ( Same as you said above - Distcp will be happy once read() 
return -1)
   * With this new patch it fails with blocks not found exception as we are 
forcing it to read till a particular length. Do you want to write a testcase 
for this case ??
   
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to