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


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/append/AppendWriteFunctionWithBufferSort.java:
##########
@@ -111,27 +113,34 @@ public void snapshotState() {
     try {
       sortAndSend();
     } catch (IOException e) {
-      LOG.error("Fail to sort and flush data in buffer during snapshot 
state.", e);
-      throw new FlinkRuntimeException(e);
+      throw new HoodieException("Fail to sort and flush data in buffer during 
snapshot state.", e);
     }
     super.snapshotState();
   }
 
+  @Override
+  public void endInput() {
+    try {
+      sortAndSend();
+    } catch (IOException e) {
+      throw new HoodieException("Fail to sort and flush data in buffer during 
endInput.", e);

Review Comment:
   HoodieException -> HoodieIOException



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