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


##########
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:
   Not sure whether we can do this, is the `writeToken` in random format for 
multiple attempts from spark or it is always the same?



-- 
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: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to