Skip to content

test(ilm): cover durable transition progress recovery - #5286

Merged
houseme merged 2 commits into
mainfrom
houseme/backlog-1479-durable-checkpoint-slice
Jul 26, 2026
Merged

test(ilm): cover durable transition progress recovery#5286
houseme merged 2 commits into
mainfrom
houseme/backlog-1479-durable-checkpoint-slice

Conversation

@houseme

@houseme houseme commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Related Issues

Related to rustfs/backlog#1479.

Summary of Changes

Adds a focused store-level regression test for durable manual transition progress checkpoints. The test persists a running async job checkpoint with an opaque continuation token, reloads the job record from system metadata, simulates owner loss by expiring the reloaded lease, and verifies recovery fails closed as Unknown with page/task journal context while releasing scope admission.

This is intentionally test-only and does not change production behavior.

Verification

  • cargo fmt --all
  • cargo fmt --all --check
  • git diff --check
  • cargo test -p rustfs-ecstore manual_transition_progress_checkpoint_survives_reload_and_recovery --lib -- --nocapture

make pre-commit was not run locally; this PR is opened as Draft and leaves broad validation to CI before readiness.

Impact

No user-facing, API, configuration, or compatibility impact. Test-only coverage for manual transition durable checkpoint/recovery semantics.

Additional Notes

Adversarial validation: correctness attacked checkpoint persistence, reload, owner-loss recovery, and scope-admission release; no break found. Simplicity attacked a pure record-level alternative, but that would not cover durable store reload or recovery integration, so the store-level test is the smallest useful slice.

Co-Authored-By: heihutu <heihutu@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

CLA requirements are satisfied for this pull request.

@houseme
houseme marked this pull request as ready for review July 26, 2026 09:14
@houseme
houseme enabled auto-merge (squash) July 26, 2026 09:14
@houseme
houseme merged commit caeaa4b into main Jul 26, 2026
21 of 35 checks passed
@houseme
houseme deleted the houseme/backlog-1479-durable-checkpoint-slice branch July 26, 2026 10:06
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