Skip to content

test(storage): cover concurrent v1 quota PUTs - #176

Merged
houseme merged 2 commits into
mainfrom
houseme/test/quota-v1-contention-9690
Nov 27, 2026
Merged

houseme merged 2 commits into
mainfrom
houseme/test/quota-v1-contention-9690

Conversation

@houseme

@houseme houseme commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Related Issues

Refs rustfs/rustfs#9690 and rustfs/backlog#3381.

Summary of Changes

Add selectable storage case source-procedure.storage.stor-137 (STOR-137) on the existing four-node, 16-disk topology. A warm PUT must report exactly one v1 ledger acquisition for each of admission, commit marker, and settlement under the same request ID. The case records the HTTP statuses and RustFS error causes for 64 concurrent 32 MiB PUTs. A separate one-byte bucket quota must reject the next byte and leave the rejected key absent.

Run the case with a RustFS candidate that contains the v1 admission change. A burst can still see HTTP 503 under contention, so the case retains the 503 evidence and separately asserts progress and the lock count.

Verification

  • Bash syntax, source-procedure catalog tests, explicit selector, and four-node dry-run passed.
  • A local mocked run passed with three matching acquisitions and recorded a 503. The same runner rejected a fourth acquisition and a successful over-cap write.
  • The live four-node suite still needs a run against the candidate.

Impact

The case uses the existing configured-endpoint validation workflow and runs when explicitly selected. It creates temporary test buckets on the suite's managed test topology.

Add a four-node validation case for the v1 ledger lock sequence,
concurrent PUT responses, and hard-quota enforcement.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
Refresh the reviewed storage runner and case catalog digests after
validating the selector and the positive and negative oracles.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
@houseme
houseme merged commit 71ee026 into main Nov 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant