Repository navigation
[flink][cdc] Skip dropped tables when restoring source splits - #11368
Open
zhangyue19921010 wants to merge 1 commit into
Open
zhangyue19921010 wants to merge 1 commit into
zhangyue19921010 wants to merge 1 commit into
Conversation
Contributor
Author
|
CI stopped in JDK setup (tar exit 2). Could you rerun the failed job? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Fixes #11367.
When a Paimon CDC source scans a database or warehouse with
tableunset, restoring after a source table is dropped fails if the checkpoint still contains pending or assigned splits. Skip coordinator splits for tables excluded during metadata restore, and finish unavailable reader splits before loading their schemas so remaining tables can continue.This change covers discovery across multiple tables. An explicitly selected missing table still follows the existing discovery behavior.
Successful table lookups remain cached. Missing tables are not cached, and other catalog errors still propagate.
Tests
Validated on JDK 11 with Java 8 source target. The new unfinished-split trigger is verified through source APIs and serialized state. The existing Flink integration control drops a table after consuming its rows, then restores and rescales.