Skip to content

test(ilm): cover cancelled continuation resume - #5294

Merged
houseme merged 2 commits into
mainfrom
houseme/backlog-1478-restart-cancel-recovery
Jul 26, 2026
Merged

test(ilm): cover cancelled continuation resume#5294
houseme merged 2 commits into
mainfrom
houseme/backlog-1478-restart-cancel-recovery

Conversation

@houseme

@houseme houseme commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Related Issues

Related to rustfs/backlog#1478, rustfs/backlog#1479, and rustfs/backlog#1481.

Summary of Changes

Extends the existing manual lifecycle transition active-cancel regression so the same production scanner path now proves the opaque continuation token returned after cancellation can resume the run and scan only the remaining object.

This is test-only. It keeps the existing cancel behavior assertions, then reuses the returned continuation token in a second dry-run manual transition call and checks that the resumed report is not cancelled, is not truncated, scans one remaining object, and returns no further continuation token.

Verification

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

Impact

No production behavior, API, storage format, or compatibility impact. This only strengthens regression coverage for manual transition cancel + continuation resume semantics.

Additional Notes

Draft because full make pre-pr was not run in this slice. Focused validation passed with the existing macOS linker warning: ld: __eh_frame section too large.

Adversarial validation: correctness attacked the cancel checkpoint/resume boundary and confirmed the second call consumes only the remaining object; simplicity attacked adding a new helper or new test file and kept the diff inside the existing regression; test-coverage attacked revert-detection, where removing the continuation-resume block would leave this behavior unpinned.

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 12:00
@houseme
houseme enabled auto-merge (squash) July 26, 2026 12:01
@houseme
houseme merged commit 0a25d25 into main Jul 26, 2026
34 of 35 checks passed
@houseme
houseme deleted the houseme/backlog-1478-restart-cancel-recovery branch July 26, 2026 13:40
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