feat: auto-recover table sync when upstream table recreated#660
Open
Ryan19929 wants to merge 1 commit into
Open
feat: auto-recover table sync when upstream table recreated#660Ryan19929 wants to merge 1 commit into
Ryan19929 wants to merge 1 commit into
Conversation
Ryan19929
marked this pull request as draft
December 16, 2025 06:16
Ryan19929
force-pushed
the
drop_table
branch
4 times, most recently
from
December 23, 2025 06:30
da137c2 to
34b7712
Compare
Ryan19929
force-pushed
the
drop_table
branch
from
December 23, 2025 08:36
da61fbc to
05cb8ed
Compare
Ryan19929
marked this pull request as ready for review
December 23, 2025 08:40
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.
问题#654
当上游表被DROP后重建(表名相同但table_id不同)时,table级别的CCR同步任务还是按照旧table id请求binlog,直到binlog过期。
解决方案
自动检测并恢复:通过 table_id 变化识别表重建,自动触发全量同步。
持久化失败处理:
persistJob()失败时回滚内存中的table_id,确保下次重试能再次检测到变化核心逻辑:
主要改动
Feature Flag
-feature_resync_on_table_recreate=false # 默认关闭涉及doris
apache/doris#59044