nsivabalan commented on code in PR #19369:
URL: https://github.com/apache/hudi/pull/19369#discussion_r3647334014


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/marker/TimelineServerBasedWriteMarkers.java:
##########
@@ -137,7 +139,7 @@ protected Option<StoragePath> create(String partitionPath, 
String fileName, IOTy
     if (success) {
       return Option.of(new 
StoragePath(FSUtils.constructAbsolutePath(markerDirPath, partitionPath), 
markerFileName));
     } else {
-      return Option.empty();
+      throw new HoodieIOException("[timeline-server-based] Failed to create 
marker for partition " + partitionPath + ", fileName " + fileName + " with 
IOType " + type);

Review Comment:
   hey @wombatu-kun : thanks for the note. 
   none of our code path should try to create an already existing marker. every 
file is immutable including log files. and task retries will use a diff write 
token. so, a client can never ask for to create a marker that already exists. 
   
   let me know if I am missing any case here



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