Repository navigation
fix: 避免账户初始化与多写任务锁冲突 - #6958
Open
hezhang-1216 wants to merge 2 commits into
Open
fix: 避免账户初始化与多写任务锁冲突#6958hezhang-1216 wants to merge 2 commits into
hezhang-1216 wants to merge 2 commits into
Conversation
账户创建在首次写入前统一持有 Tree 锁,并为 multiwrite 临时锁冲突增加有界指数退避,避免初始化失败和事件丢失。
避免单个账户的初始化锁冲突阻塞其他账户事件消费,同时保持原有退避上限和待处理计数语义。
This branch has not been deployed
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.
Summary
Conflict、Timeout或Busy时保留事件并指数退避重试;单次等待上限 10 秒、总窗口 3 分钟,并以 32 次作为防御性上限Test plan
cargo test -p ragfs 'multibackend::runtime::tests::'pytest -q tests/server/test_admin_api.py -k 'create_account or create_user_paths_accept_initial_user_config'pytest -q tests/server/test_account_services.py -k accountpytest -q tests/unit/test_directory_initializer.py -k 'workspace or system_assets_sync'ruff check、rustfmt --check和git diff --check