hk-lrzy commented on code in PR #3128:
URL: https://github.com/apache/flink-cdc/pull/3128#discussion_r1609878354


##########
flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/operators/schema/SchemaOperator.java:
##########
@@ -127,11 +142,23 @@ public Schema load(TableId tableId) {
                                 });
     }
 
+    @Override
+    public void initializeState(StateInitializationContext context) throws 
Exception {
+        if (context.isRestored()) {

Review Comment:
   why only restore need refresh.
   does there have follow case:
   
   1. job start
   2. schema operator received some schema change events and send it to 
coordinator.
   3. operator failed before schema operator get response and there have no 
checkpoint.
   4. schema operator restart and send new `CreateTableEvent` to the 
coordinator.
   



-- 
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: issues-unsubscr...@flink.apache.org

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

Reply via email to