Skip to content

test(heal): cover deletion after a durable MRF hold - #189

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

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

Conversation

@houseme

@houseme houseme commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

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.sh and git diff --check passed.
  • 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.

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.

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:3 cluster on a dedicated Docker network with loopback-only port bindings (127.0.0.1::9000), --pull never, random generated credentials, and an EXIT trap 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, survives DELETE + 3-node HEAD 404 + physical absence across all 9 disk directories with unchanged {nodeId, responsibilityId, bucketIncarnationId, heldSinceMs}, acknowledges targeted recheck (state == "active", dataVerified == false, durableResponsibilityRetained == true), drains, and stays drained across coordinator restart.
    • Minor non-blocking note: network="mrf-held-${evidence##*.}" assumes mktemp -d generates a dot-separated suffix; using basename "$evidence" (or ${evidence##*/}) would avoid / in the network name even under non-standard TMPDIR templates.
  • docs/validation-heal-cases.md:
    • Accurately documents the script invocation, prerequisites (Docker, curl with SigV4, jq, OpenSSL), and assertions.

CI & Verification

  • contract-tests (Validation Catalog Tests) passed (SUCCESS).

@overtrue
overtrue merged commit b16f8bb 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