Repository navigation
Backport/051 hotfix online fixes - #6645
Merged
Merged
Conversation
Add a multi-write backup option to control whether startup scans pre-existing primary files into V2 metadata. Document the default disabled behavior and the conditions where historical backfill can be skipped. (cherry picked from commit 56e8bea) (cherry picked from commit ae29842) Co-authored-by: TRAE CLI <traecli@bytedance.com>
(cherry picked from commit 5e45a87) Co-authored-by: TRAE CLI <traecli@bytedance.com>
* fix(storage): 修复递归删除导致 PathLock 提前失效 将目录锁迁移到父目录 sidecar,并兼容旧锁与 handoff;删除获锁后重新确认目标状态,避免并发请求沿用过期判断。 (cherry picked from commit 014bd7c) * test(storage): 补充 PathLock 路径关系矩阵 使用共享文件系统上的独立 Manager 验证祖先、后代与兄弟路径的冲突和非冲突语义,防止 sidecar 迁移引入锁范围回归。 (cherry picked from commit c60e67a) * fix(storage): 收敛 PathLock sidecar 迁移协议 拆分 Tree 路径解析并修正根路径寻址,撤回无关的 Snapshot 行为变化,同时明确新旧锁协议的切换约束,降低迁移影响范围。 (cherry picked from commit 10ec440) --------- Co-authored-by: zhanghe.1216 <@bytedance.com> (cherry picked from commit 36258b3) Co-authored-by: TRAE CLI <traecli@bytedance.com>
qin-ctx
approved these changes
Oct 27, 2026
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
Backport production storage and session fixes missing from
release/v0.5.1-hotfix. The fixes remove redundant legacy session filesystem probes and query-time user registry refreshes, and prevent recursive deletion from removing its own lock token before the lease is released.The backport preserves the 0.5.1 asynchronous AccountStore/TaskWorkStore architecture, MySQL/redis_mysql behavior, pagination, credential permissions, and lock handoff handling.
Human Involvement
Related Issue
Related upstream/backport PRs: #6395, #6607, #6618, #6629, #6632, and #6642.
Type of Change
Changes Made
.sync_log.jsonand.redirect.json) hidden from normal directory listings while retaining internal access for migration.reconcile_existing_datato control historical primary-file scanning and backfill when multi-write initializes.fresh=Truerefresh, the asynchronous manager interface, and MySQL-backed listing behavior.service_nameand pending-handoff cleanup.Testing
Relevant local validation passed with the candidate RAGFS Python extension rebuilt:
git diff --checkpassed.Checklist
Screenshots (if applicable)
N/A.
Additional Notes
Compatibility and rollout:
viking://session/...and no longer read either legacy physical session layout. Use canonicalviking://user/<uid>/sessions/<sid>URIs. This change does not automatically relocate historical session data.reconcile_existing_datadefaults tofalse. Deployments that require historical backfill must explicitly enable it during initialization/migration; changing it after the metadata state is already stable does not restart scanning.Validation limitations: Focused Mypy validation still reports existing type declaration gaps: 326 diagnostics on the target baseline versus 284 after the backport. There are no new diagnostic categories; the new post-lock stat adds one occurrence of the existing
_OpsMixin._async_agfsdeclaration gap. Four files also retain formatter differences already present in the target baseline. No additional dependent PRs are required; release artifact publication and deployment remain separate steps.Provenance: All commits retain their
cherry picked from commitinformation. The 18 commits added torelease/v0.5.0-hotfixsincev0.5.0were audited against the 0.5.1 implementation; 13 fixes were already covered, and five missing behaviors are backported here.d8dd90d9is retained as an empty provenance commit because its changes are already present in the target branch.236e3c46d553689863d8dd90d9d58617016(empty provenance commit)ae29842fb798979475e45a875aebeb95d836258b3d45ddd62f214d622daa609d3f5a