ChenSammi commented on code in PR #5847:
URL: https://github.com/apache/ozone/pull/5847#discussion_r1442424588


##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/OzoneClientAdapter.java:
##########
@@ -95,7 +97,9 @@ SnapshotDiffReport getSnapshotDiffReport(Path snapshotDir,
       String fromSnapshot, String toSnapshot)
       throws IOException, InterruptedException;
 
-  boolean recoverLease(String pathStr) throws IOException;
+  List<OmKeyInfo> recoverFilePrepare(String pathStr) throws IOException;

Review Comment:
   openKeyInfo has all the allocated blocks. If the file has multiple 
preallocated blocks, we actually don't know how many blocks are actually used, 
because each block in openKeyInfo only has the allocated block length, doesn't 
have the real data length. And keyInfo will have real data length for each 
block, but keyInfo will not have preallocated by not used yet blocks info. 



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

Reply via email to