JingsongLi commented on code in PR #11368:
URL: https://github.com/apache/paimon/pull/11368#discussion_r4662417205
##########
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:
**[P2] Keep catalog lookups off the warm split path.** This availability
check runs for newly assigned splits too. I read Parquet splits from 257
ordinary append tables in round-robin order through a single reader with the
default cache sizes. After warm-up, the base reader made zero additional
`Catalog.getTable` calls and this reader made 257 per round. The 1,024-entry
schema and read caches still had every table, but the 256-entry table cache
missed on every split. With a REST catalog and
`catalog.properties.cache-enabled=false`, that means a synchronous GetTable
request per split on the fetch thread. Please limit the check to restored
splits, or detect missing tables when loading an uncached schema or reader.
--
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]