为 TDengine 完善逻辑备份和恢复功能#33049
Merged
zyyang90 merged 1 commit intotaosdata:research/3.3.6-experimentalfrom Oct 29, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
本PR为TDengine增量位图插件实现了完整的逻辑备份和恢复功能,基于"逻辑快照 + 增量(WAL/脏块)"架构,重点关注兼容性、高性能、可靠性与可扩展性。核心变更包括:
- 实现了插件核心组件:位图引擎、事件拦截器、备份协调器等
- 提供了TDengine TMQ存储引擎适配,支持实时事件消费
- 完善了测试覆盖,包括单元测试、集成测试和端到端测试
- 添加了taosX插件技术预览接口
- 集成了可观测性指标收集与输出
Reviewed Changes
Copilot reviewed 59 out of 90 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/test_backup_coordinator.c | 备份协调器测试,涵盖初始化、脏块获取、游标操作等核心功能 |
| test/test_abstraction_layer.c | 位图接口抽象层测试,验证工厂模式和环境变量控制 |
| test/pitr_e2e_test.c | 时间点恢复端到端测试,包含数据量检查和性能验证 |
| test/mock_storage_engine.c | Mock存储引擎实现,用于测试环境 |
| test/e2e_perf.c | 端到端性能测试工具 |
| test/e2e_consistency.c | 端到端一致性验证工具 |
| taosx_plugin/*.c/.h | taosX插件接口技术预览实现 |
| src/*.c | 核心组件实现:存储引擎、位图引擎、事件拦截器等 |
Comments suppressed due to low confidence (1)
plugins/incremental_bitmap/src/tdengine_storage_engine.c:1
- The trailing comma after config->recovery_path should be removed as this is the last member being initialized in the struct initializer.
#include "storage_engine_interface.h"
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
65a7b5c to
4aaa55e
Compare
4aaa55e to
0d2b638
Compare
3 tasks
0d2b638
into
taosdata:research/3.3.6-experimental
1 check passed
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.
Description
本 PR 基于分支 backup/snapshot_20250912_204521,在 plugins/incremental_bitmap 实现并验证以“逻辑快照 + 增量(WAL/脏块)”为核心的时间点恢复(PITR)链路,聚焦兼容性、高性能、可靠性与可扩展性的落地与可复现校验。
兼容性
高性能
高可靠
端到端测试严格化
真实环境脚本校验:run_real_tests.sh
非真实环境脚本:run_tests.sh
可扩展
复现入口
Checklist