gong commented on code in PR #6872:
URL: https://github.com/apache/inlong/pull/6872#discussion_r1048170528


##########
inlong-sort/sort-connectors/hive/src/main/java/org/apache/inlong/sort/hive/filesystem/AbstractStreamingWriter.java:
##########
@@ -134,7 +138,17 @@ public AbstractStreamingWriter(
      * Commit up to this checkpoint id.
      */
     protected void commitUpToCheckpoint(long checkpointId) throws Exception {
-        helper.commitUpToCheckpoint(checkpointId);
+        try {
+            helper.commitUpToCheckpoint(checkpointId);
+            if (metricData != null) {
+                metricData.invoke(rowSize, dataSize);
+            }
+            rowSize = 0L;
+            dataSize = 0L;
+        } catch (Exception e) {
+            LOG.error("hive sink commitUpToCheckpoint.", e);

Review Comment:
   done



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