danny0405 commented on code in PR #9035:
URL: https://github.com/apache/hudi/pull/9035#discussion_r1255268875


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieMergeHandle.java:
##########
@@ -192,10 +192,17 @@ private void init(String fileId, String partitionPath, 
HoodieBaseFile baseFileTo
       writeStatus.getStat().setFileId(fileId);
       setWriteStatusPath();
 
-      // Create Marker file,
+      // If this is a second or subsequent attempt to create the data file, 
try to recover existing version.
+      if 
(recoverWriteStatusIfAvailable(partitionPath,FSUtils.makeBaseFileName(this.instantTime,
 this.writeToken,
+          this.fileId, hoodieTable.getBaseFileExtension()), this.instantTime)) 
{

Review Comment:
   So how to reuse the write status because the file name already changes, and 
for Flink we even have a eager flush(one instant would flush multiple files in 
one filegroup).



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

Reply via email to