zhangyue19921010 commented on code in PR #11368:
URL: https://github.com/apache/paimon/pull/11368#discussion_r4667213625


##########
paimon-flink/paimon-flink-cdc/src/main/java/org/apache/paimon/flink/pipeline/cdc/source/reader/CDCSourceSplitReader.java:
##########
@@ -222,12 +224,20 @@ private void checkSplitOrStartNext() throws IOException {
         }
 
         Identifier identifier = nextSplit.getIdentifier();
+        currentSplitId = nextSplit.splitId();
+        // Reader state can contain splits for a table removed while the job 
was stopped.
+        if (!tableManager.isTableAvailable(identifier)) {

Review Comment:
   Fixed in 5a573a9: the availability check now happens only when the split 
schema is not cached (`getTableSchemaIfAvailable`), so warm splits make no 
extra `Catalog.getTable` calls while restored splits, which start with empty 
caches, still skip dropped tables (covered by a new counting-catalog test).



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