Repository navigation
test(heal): cover deletion after a durable MRF hold - #189
Merged
Merged
Conversation
Co-Authored-By: heihutu <[email protected]> Co-Authored-By: zhi22915 <[email protected]> Co-Authored-By: qunjiazhu <[email protected]>
overtrue
approved these changes
Dec 1, 2026
overtrue
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed abb2ec0d (test(heal): cover deletion after a durable MRF hold). LGTM.
Detailed Review
scripts/validation_heal/mrf_held_deleted_docker.sh:- Cleanly isolates a 3-node / 9-directory
EC:3cluster on a dedicated Docker network with loopback-only port bindings (127.0.0.1::9000),--pull never, random generated credentials, and anEXITtrap that collects container logs before removing containers and the test network. - Verifies the full lifecycle: degraded PUT persists an active responsibility before node 3 rejoins, transitions to
held_unverified_legacy, survivesDELETE+ 3-nodeHEAD 404+ physical absence across all 9 disk directories with unchanged{nodeId, responsibilityId, bucketIncarnationId, heldSinceMs}, acknowledges targetedrecheck(state == "active",dataVerified == false,durableResponsibilityRetained == true), drains, and stays drained across coordinator restart. - Minor non-blocking note:
network="mrf-held-${evidence##*.}"assumesmktemp -dgenerates a dot-separated suffix; usingbasename "$evidence"(or${evidence##*/}) would avoid/in the network name even under non-standardTMPDIRtemplates.
- Cleanly isolates a 3-node / 9-directory
docs/validation-heal-cases.md:- Accurately documents the script invocation, prerequisites (Docker,
curlwith SigV4,jq, OpenSSL), and assertions.
- Accurately documents the script invocation, prerequisites (Docker,
CI & Verification
contract-tests(Validation Catalog Tests) passed (SUCCESS).
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.
Related issues
Refs rustfs/rustfs#9825, rustfs/rustfs#9810 and rustfs/backlog#3397.
Summary
Add a runnable Docker regression alongside E05 for three nodes with nine storage directories and EC:3. The test requires a degraded S3 PUT to persist an active responsibility before the offline node rejoins. It then checks that the exact held identity survives a successful DELETE, three authenticated HEAD 404 responses and absence on all nine directories. An acknowledged targeted recheck retains the same responsibility as active until storage processes it. The case verifies discharge and checks that it persists across coordinator restart.
The test uses a fresh Docker network, disposable volumes, random test credentials and loopback-only published ports. It collects checkpoints and logs before cleaning up its own containers and network.
Verification
bash -n scripts/validation_heal/mrf_held_deleted_docker.shandgit diff --checkpassed.scripts/validation_heal/mrf_held_deleted_docker.sh <local-image>passed on a Linux/arm64 RustFS 1.0.5 image tagged for the reported baseline. The image's version banner did not embed a Git SHA. The nine directories share a Docker virtual backing device.