You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "featzhang (via GitHub)" <gi...@apache.org> on 2023/02/01 04:00:12 UTC

[GitHub] [inlong] featzhang commented on a diff in pull request #7059: [INLONG-7058][Sort] Support Apache Kudu connector

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-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org