Repository navigation
fix(du): show full-traversal estimates for hot buckets - #443
Merged
Merged
Conversation
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.
Summary
Handle
observed_bucketsin the persisted RustFS usage view for a bucket that changes throughout its scanner traversal. Prefer a completed bucket statistic when available, then a timestamped traversal estimate, then eligible first-scan progress. The estimate provides logical bytes and current object count.Bucket output labels such estimates with their original timestamp, and JSON v3 identifies them in the optional
data.observed_statisticsmap. Cluster totals exclude these rows. The command keeps its existing partial-result exit code 3.Verification
cargo test --workspacepassed 2,092 tests.cargo fmt --all --checkandcargo clippy --workspace -- -D warningspassed.rcagainst a loopback HTTP fixture. Bucket and cluster JSON and text output identified the estimate and returned exit 3. The certified bucket returned exit 0, and all requests stayed on the admin routes.Refs rustfs/rustfs#9855. The matching server change is rustfs/rustfs#9882.