featzhang commented on code in PR #7059: URL: https://github.com/apache/inlong/pull/7059#discussion_r1092741370
########## inlong-sort/sort-connectors/kudu/src/main/java/org/apache/inlong/sort/kudu/sink/AbstractKuduSinkFunction.java: ########## @@ -145,7 +149,11 @@ public void close() throws Exception { } @Override - public void snapshotState(FunctionSnapshotContext functionSnapshotContext) { + public void snapshotState(FunctionSnapshotContext functionSnapshotContext) throws Exception { + if (sourceMetricData != null && metricStateListState != null) { + MetricStateUtils.snapshotMetricStateForSourceMetricData(metricStateListState, sourceMetricData, Review Comment: @gong fixed -- 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: commits-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org