Repository navigation
修复历史审计类型校正阻塞服务启动 - #3
Merged
Merged
Conversation
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.
历史 SQL 类型校正在监听 HTTP 端口前同步解析整个审计库,导致大库重启期间健康检查长期不可用,且每次重启都会重做扫描。修复后先完成轻量初始化并监听端口,再用独立连接每批处理 32 行;校正和游标原子提交,重启续跑,保留进度日志。
候选提交:
754390a0accc8c3438c0b571da09e4b38c763364;目标基线:d370b3a4df12f8aae4091ea6100e1fdae5be2efd。这是现有 master 发布模型下的启动阻塞修复,不新增 dev 分支。验证:192 项 CLI 单测、92 项 serve API 测试、Clippy、Rust 格式检查及 18 个真实 SQL 回归通过。约 517 MiB、8 千余条大 JSON 记录的本机测试验证了历史记录尚未校正时健康检查即就绪、新审计正常写入、重启游标续跑,以及带 lineage-config 的认证访问。测试服务与端口已清理。
线上用户返回的 PID 已运行四分钟且持续使用 CPU,与缺陷一致;尚未取得生产堆栈,也未代替用户部署验收。不将本机启动耗时视为生产 SLA。核心解析和前端未变,复用本次会话已通过的相关检查。最终候选已在主会话完成代码审查和针对性验证,未另派独立审查 Agent。