feat: auto-recover table sync when upstream table recreated #660
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 变化识别表重建,自动触发全量同步。
核心逻辑:
主要改动
Feature Flag
-feature_resync_on_table_recreate=false # 默认关闭涉及doris
apache/doris#59044