Repository navigation
fix(storage): 升级后继续隐藏旧版多写元数据 - #6395
Merged
Merged
Conversation
baojun-zhang
approved these changes
Oct 21, 2026
15 of 21 tasks
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
修复 #5741 引入的升级回归:从 V1 多写存储升级后,任务目录中残留的
.sync_log.json、.redirect.json会出现在目录查询结果中。任务接口将这些 JSON 当作任务记录读取,因缺少status返回 500。例如,任务目录中有一条正常任务和
.sync_log.json,调用GET /api/v1/tasks?resource_id=<session_id>:修改前返回KeyError: 'status'/ HTTP 500;修改后只加载实际任务,正常返回列表。在文件系统统一内部文件规则中恢复两个旧文件名的隐藏。迁移和清理仍可通过内部目录接口访问原文件;不删除数据,也不回滚 V2 存储协议。
Human Involvement
Related Issue
回归来源:#5741。
Type of Change
Changes Made
Testing
已有目录查询契约测试在修复前失败,修复后通过。运行
cargo test -p ragfs --lib core:: --locked --offline,并通过修改文件的rustfmt --check与git diff --check。Checklist
Screenshots (if applicable)
不适用。
Additional Notes
此修复针对旧版内部元数据导致的任务查询 500;不改变任务状态语义或持久化格式。