refactor: remove legacy event file store

This commit is contained in:
lingniu
2026-07-01 11:04:11 +08:00
parent e80fa6f38c
commit 7ce64e9963
16 changed files with 61 additions and 1675 deletions

View File

@@ -100,11 +100,11 @@
3. 默认生产链路继续以 `sink-archive`、Kafka raw topic、TDengine raw_frames 为准。
- **Consequences**: 默认构建少一个未部署模块;本地 raw archive 原型仍可通过 `-Poptional-raw-archive-store` 保留和验证。
## ADR-015 event-file-store 兼容索引Optional only
## ADR-015 文件型事件索引Removed
- **Status**: Accepted
- **Context**: 默认历史查询已收敛到 TDengine `raw_frames``vehicle_locations` 和按需解码;旧 Parquet/DuckDB `event-file-store` 只保留为兼容索引实现,不应把 DuckDB/Parquet 路径拖进默认生产 reactor
- **Context**: 默认历史查询已收敛到 TDengine `raw_frames``vehicle_locations` 和按需解码;旧文件型索引会增加一套无生产部署的查询和依赖边界
- **Decision**:
1. `event-file-store` 不进入默认 Maven reactor
2. event-file-store 仅保留在 `optional-event-file-store` profile需要兼容排查旧索引时显式构建
3. `EventFileStore``EventFileRecord``EventFileQuery` 轻量契约归属 `ingest-api`history 服务只依赖契约,不依赖兼容实现
- **Consequences**: 默认构建面少一个 DuckDB/Parquet 兼容模块;旧索引实现仍可通过 `-Poptional-event-file-store` 单独验证
1. 删除旧文件型事件索引模块和 profile
2. 父 POM 不再管理旧索引驱动依赖
3. 历史查询和 RAW 回放统一以 TDengine + `archive://...` 引用为准
- **Consequences**: 默认构建面和可选构建面都更小;需要历史查询时只维护 TDengine 一条路径