Skip to content

fix(scanner): handle unpublished usage snapshots - #173

Merged
cxymds merged 2 commits into
mainfrom
cxymds/fix-scanner-usage-snapshots
Nov 26, 2026
Merged

cxymds merged 2 commits into
mainfrom
cxymds/fix-scanner-usage-snapshots

Conversation

@cxymds

@cxymds cxymds commented Nov 26, 2026

Copy link
Copy Markdown
Member

Changes

  • Treat an explicitly incomplete, empty Admin usage response without a scan identity as an unpublished observation. The probe keeps polling within its existing convergence deadline and retains the last observed cycle and epoch.
  • Validate published scanner epochs as non-negative integers. Complete snapshots with a missing cycle, malformed identifiers, cycle regression, and epoch changes still fail.
  • Exercise both public cases through the unpublished-to-published transition and ensure that a response that stays unpublished times out.

Validation

  • python3 -B -m unittest test_validation_scanner_usage.py (54 tests)
  • bash test_validation_scanner_usage.sh
  • Four-node VM Lab on RustFS 51913268. Both USAGE-01 and USAGE-20 passed their full black-box assertions and cleanup with a five-second scanner cycle in an isolated test namespace.

Refs rustfs/backlog#3369

@cxymds
cxymds merged commit 96a7125 into main Nov 26, 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.

1 participant