LiuGuH commented on code in PR #6926: URL: https://github.com/apache/hadoop/pull/6926#discussion_r1731210555
########## hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java: ########## @@ -131,6 +131,7 @@ public class DFSOutputStream extends FSOutputSummer private FileEncryptionInfo fileEncryptionInfo; private int writePacketSize; private boolean leaseRecovered = false; + private ExtendedBlock userAssignmentLastBlock; Review Comment: This is used for DFSOutputStream.completeFile() . When fastcop a file from src to dst , and dst is control by outputStream for file lease ,and use addblock() for create block with dst . When completeFile() is invoked, the last block should exits. So userAssignmentLastBlock is called when outputstrem closed. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
