Files
rustfs/crates/heal
Hauser Zhi fdacb7ae40 perf(quota): batch v1 ledger writes under contention (#9694)
* perf(quota): reuse the v1 ledger lock during admission

Use the fenced ledger read for both the stale reservation check and
quota admission. Drop the ledger lock while probing operation owners,
then reload before applying recovery. Correlate v1 ledger acquisitions
across request and detached commit tasks.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(quota): batch v1 commit markers and settlements

Share one fenced ledger load and durable save for pending mutations
on the same coordinator. Keep per-request acquisition budgets and
retain operation owners until persistence completes. Preserve isolated
mutation errors and the existing admission and crash boundaries.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(quota): batch v1 admissions through the ledger executor

Apply pending admissions against one fenced balance and acknowledge
them after the shared durable save. Keep independent recovery for
abandoned operations and avoid reporting a speculative hard-cap
denial after a failed write. Share immutable reservation data across
detached stages without copying object and ledger keys.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* test(heal): wait for restored root completion handoff

Use the scheduler's test hook to wait for the terminal publication
attempt and active-task removal without polling against a five-second
wall-clock deadline. Verify the successful terminal receipt on disk
and that no pending recovery remains.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-11-29 09:47:21 +08:00
..