e-mhui commented on code in PR #7173:
URL: https://github.com/apache/inlong/pull/7173#discussion_r1063193835


##########
inlong-sort/sort-connectors/iceberg/src/main/java/org/apache/inlong/sort/iceberg/sink/multiple/IcebergSingleFileCommiter.java:
##########
@@ -160,7 +160,7 @@ public void initializeState(FunctionInitializationContext 
context) throws Except
 
         this.checkpointsState = 
context.getOperatorStateStore().getListState(stateDescriptor);
         this.jobIdState = 
context.getOperatorStateStore().getListState(jobIdDescriptor);
-        if (context.isRestored()) {
+        if (context.isRestored() && jobIdState.get().iterator().hasNext()) {

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: commits-unsubscr...@inlong.apache.org

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

Reply via email to