fix: 隔离 ClickHouse 回填代次 #113
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/WuYongJie-clickhouse-generation-key"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
修复 ReplacingMergeTree 只按业务键去重、导致新回填代次覆盖旧代次的问题。新表改为按 generation + mirror key 排序,并在每次回填前校验生产表排序键;旧结构会直接拒绝继续写入。同步更新分层存储说明。
验证:ColumnarBusinessMirrorRepositoryTest 与 BusinessDataColumnarBackfillTest 共 5 项、43 个断言通过;PHP 语法检查通过。
影响:涉及 ClickHouse 表结构契约;不新增 Laravel 迁移,不改金额、权限或页面,不删除/激活任何生产数据。生产旧表将另按已授权、可回滚的影子表流程修复。