Repository navigation
backport: make release/v0.5.2-hotfix a superset of release/v0.5.0-hotfix - #6976
Merged
baojun-zhang merged 9 commits intoNov 4, 2026
Merged
baojun-zhang merged 9 commits into
baojun-zhang merged 9 commits into
Conversation
* 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)
1. 去除启动 checkpoint ticker,避免重复启动导致的 IOPS 峰值 2. 增加随机值设置初次 checkpoint 时机,防止多实例同时启动导致并发 IOPS 峰值 3. flush worker 使用内存缓存记录account 分区信息,而不是每个 batch 查询 account 分区信息 4. 增加部分进度日志 (cherry picked from commit 3d46710)
- 缓存账号路由快照,减少重复读取分区 manifest - 记录 dirty scope,让 catch-up 只同步已变更分区 - 使用内存快照维护多写 lag 指标,避免 metrics scrape 扫描元数据 - 降低 catch-up lease 刷新频率,并缩小 append 锁范围以减少 sidecar 写入 (cherry picked from commit b8bc624)
(cherry picked from commit 5e45a87)
11 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.
What
Cherry-picks (
-x) every release/v0.5.0-hotfix commit that 0.5.2-hotfix was missing, sorelease/v0.5.2-hotfixbecomes a superset ofrelease/v0.5.0-hotfix.reconcile_existing_data, default off)_ops.py: kept 0.5.2's recursivevector_store.delete_uris(..., recursive=True)branch.test_session_delete_storage.py: kept 0.5.2's side, which already had the outer-lease test and the TTL native-tree-lease test, plus 0.5.2's recursive-delete assertionsdocs/{en,zh}/api/12-content.md: took the new URI bullet (oldviking://session/...→INVALID_URI) and kept 0.5.2's privacy bullet._access.py: kept 0.5.2'sinspectimport, dropped the now-unusedjsonimportreindex_executor.py,reindex_processor.pyandtest_admin_rebuild_api.pywere byte-identical to main6afd9ba3^, so I took main's #6663 version of those three files (8ae4f14 is a re-port of 6afd9ba onto v0.5.0's older wait-tracker architecture, which 0.5.2 doesn't have).viking_vector_index_backend.py: addedget_reindex_inventory_under_uri; the file now equals main's 6afd9ba apart from 0.5.2's existingdelete_uris(recursive=).test_semantic_queue_memory_dedupe.py: 0.5.2 already had the same test under another name, so kept ours. The rest auto-merged and matches main 6afd9ba, plus 8ae4f14's 4 new test files (test_reindex_{memory_sources,namespace_scopes,orphan_safety,semantic_chunk_safety}.py), which pass hereLegacyAPIKeyManager.list_users_page(fresh=False)(api_keys/legacy.py). Kept the 0.5.2 handlers and removed the refresh from the non-fresh path;fresh=Truestill reads the store. Kept the rewrittentest_list_users_reads_memory_without_storageStoreIOLimiter,_store_ioormax_concurrent_store_ioremainstest_session_storage_uses_canonical_uri(0.5.2-only test) had to seed the canonicaluser/{id}/sessionspath, as main doesSuperset check: for each of the 21 commits in
v0.5.0..origin/release/v0.5.0-hotfix, I checked every added line (≥12 chars) still present at the 0.5.0-hotfix tip against this branch. The 7 listed commits plus #6629 are fully present, except 8ae4f14, where 15 v0.5.0-only shim lines (get_request_wait_tracker,executor_lease/lease_guardreconstruction, the old test name and assertions) are intentionally replaced by main's version. The older 0.5.0-hotfix commits (#6046, #5741, #6270, #6175, #6265, #6165, #6178, #4548, #6153, #6045, #5926, #5772, and 236e3c4) are already on 0.5.2-hotfix by PR number. Their few "missing" lines are places where 0.5.2 later refactored the code.Risk notes
/{account}/session/...,viking://session/...). That's unusual for a patch release, so please confirm it's wanted on 0.5.2-hotfix.reconcile_existing_dataconfig, default off.Tests (local)
cargo check -p ragfs: OK (warnings only).cargo test -p ragfs --lib multibackend: 9 passed, 0 failed.{}ov.conf): all pass except:test_admin_api.py::test_create_account(400 != 200). Fails the same way on unmodified main, so it's an environment issue.test_session_service_metrics.py::test_user_memory_policy_prefers_user_setting_and_falls_back_to_server_defaultandtest_viking_fs_tree.py::test_ls_agent_preserves_metadata_acl_and_summary_controls. Both fail on unmodified release/v0.5.2-hotfix too.tests/server/test_api_sessions.pydidn't run: every test hit a fixture-setup timeout in this local environment, so there's no result.🤖 Generated with Claude Code