Skip to content

[flink][cdc] Skip dropped tables when restoring source splits - #11368

Open
zhangyue19921010 wants to merge 1 commit into
apache:masterfrom
zhangyue19921010:contrib/restore-cdc-after-table-removal-current-20261123
Open

zhangyue19921010 wants to merge 1 commit into
apache:masterfrom
zhangyue19921010:contrib/restore-cdc-after-table-removal-current-20261123

Conversation

@zhangyue19921010

Copy link
Copy Markdown
Contributor

Purpose

Fixes #11367.

When a Paimon CDC source scans a database or warehouse with table unset, 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

  • Four real-source checkpoint regressions cover pending/assigned splits with one/all source tables removed. They fail on unchanged master and pass with the fix; the surviving table's rows are verified.
  • Table-manager controls cover rediscovery after an unavailable lookup and propagation of catalog errors.
  • Current final committed-head run: 44 tests passed, including the existing Flink savepoint/rescale integration case, with Checkstyle, Spotless and Enforcer enabled. RAT passed separately.

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.

@zhangyue19921010

Copy link
Copy Markdown
Contributor Author

CI stopped in JDK setup (tar exit 2). Could you rerun the failed job?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Paimon CDC cannot restore unfinished splits after a source table is dropped

1 participant