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


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/clustering/ClusteringCommitSink.java:
##########
@@ -141,6 +141,15 @@ private void commitIfNecessary(String instant, 
List<ClusteringCommitEvent> event
     }
   }
 
+  private boolean containFailedEvent(List<ClusteringCommitEvent> events) {
+    return events.stream().anyMatch(event -> {
+      if (event.isFailed()) {
+        LOG.warn("Failed clustering event from task " + event.getTaskID() + ", 
will rollback instant " + event.getInstant());
+      }

Review Comment:
   Is the log helping by pointing out the task id? If not, just log the message 
directly in line 124.



##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/clustering/ClusteringCommitSink.java:
##########
@@ -141,6 +141,15 @@ private void commitIfNecessary(String instant, 
List<ClusteringCommitEvent> event
     }
   }
 
+  private boolean containFailedEvent(List<ClusteringCommitEvent> events) {
+    return events.stream().anyMatch(event -> {
+      if (event.isFailed()) {
+        LOG.warn("Failed clustering event from task " + event.getTaskID() + ", 
will rollback instant " + event.getInstant());
+      }

Review Comment:
   Is the log helpful by pointing out the task id? If not, just log the message 
directly in line 124.



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