Skip to content

test(heal): require automatic retirement after cross-peer delete - #190

Merged
overtrue merged 1 commit into
mainfrom
houseme/mrf-held-auto-discharge-regression
Dec 1, 2026
Merged

overtrue merged 1 commit into
mainfrom
houseme/mrf-held-auto-discharge-regression

Conversation

@houseme

@houseme houseme commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Related issues

Refs rustfs/rustfs#9825, rustfs/rustfs#9810, rustfs/rustfs#9831 and rustfs/backlog#3397.

Summary

Run a standalone Docker regression alongside E05 on three disposable nodes with nine directories and EC:3. A degraded S3 PUT first persists an active responsibility. After the offline peer rejoins, the test confirms the original scoped responsibility is held. DELETE runs through another peer. The test checks all three authenticated HEAD responses and all nine physical paths, then requires automatic discharge and verifies it survives coordinator restart.

Verification

  • ShellCheck, Bash syntax and diff whitespace checks passed.
  • The historical arm64 RustFS image timed out with one held entry and zero active entries after all peers recovered. The Linux arm64 candidate built from rustfs/rustfs@d79041ab76 passed the identical cross-peer delete case and remained discharged after restart.

Co-Authored-By: heihutu <[email protected]>
Co-Authored-By: zhi22915 <[email protected]>
Co-Authored-By: qunjiazhu <[email protected]>

@overtrue overtrue left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on 18186dae (test(heal): require automatic retirement after cross-peer delete).

Detailed Review

  1. scripts/validation_heal/mrf_held_deleted_docker.sh:
    • Deleting the unversioned object through ${endpoints[1]} rather than $coordinator directly exercises cross-peer DELETE propagation, followed by authenticated 404 HEAD checks across all three endpoints and direct filesystem checks across all nine storage directories.
    • Removing the manual POST .../responsibilities/actions (recheck) step and waiting up to 120s for activeResponsibilityCount == 0 && heldCount == 0 across all nodes—and verifying the drained state persists after restarting containers[0]—matches the automatic held-MRF retirement behavior targeted in rustfs/rustfs#9831.
    • Retaining capture_held > "$evidence/held-before-delete.json" before the DELETE preserves diagnostic identity evidence without interfering with automatic discharge.
  2. docs/validation-heal-cases.md:
    • Accurately updates the E05 Docker regression description to match the cross-peer delete and automatic discharge flow.

contract-tests is green. Note that running this standalone script requires a RustFS image with automatic held-MRF discharge support (rustfs/rustfs#9831).

@overtrue
overtrue merged commit 1810520 into main Dec 1, 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.

2 participants