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


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/timeline/versioning/v2/LSMTimelineWriter.java:
##########
@@ -116,10 +117,27 @@ public static LSMTimelineWriter 
getInstance(HoodieWriteConfig config, TaskContex
   public void write(
       List<ActiveAction> activeActions,
       Option<Consumer<ActiveAction>> preWriteCallback,
-      Option<Consumer<Exception>> exceptionHandler) throws 
HoodieCommitException {
+      Option<Consumer<Exception>> exceptionHandler) {
     ValidationUtils.checkArgument(!activeActions.isEmpty(), "The instant 
actions to write should not be empty");
     StoragePath filePath = new StoragePath(this.archivePath,
         newFileName(activeActions.get(0).getInstantTime(), 
activeActions.get(activeActions.size() - 1).getInstantTime(), FILE_LAYER_ZERO));
+    try {
+      if (this.metaClient.getStorage().exists(filePath)) {

Review Comment:
   one time for each archiving action, so should be very low frequency.



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