Skip to content

fix(storage): prioritize large coverage compaction queues#438

Merged
fewensa merged 1 commit into
mainfrom
fix-v2-compaction-chain-scheduling
Jul 8, 2026
Merged

fix(storage): prioritize large coverage compaction queues#438
fewensa merged 1 commit into
mainfrom
fix-v2-compaction-chain-scheduling

Conversation

@fewensa

@fewensa fewensa commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • rank coverage-index-v2 queued chains by queue size hint instead of a boolean queue check
  • limit each compaction wake to the largest queued chains so hot coverage buckets get repeated processing instead of being diluted by every chain

Validation

  • cargo fmt -p datalens-cli --check
  • CARGO_TARGET_DIR=/code/helixbox/datalens/target CARGO_INCREMENTAL=0 cargo test -p datalens-cli storage_compaction_chain_batch -- --nocapture
  • CARGO_TARGET_DIR=/code/helixbox/datalens/target CARGO_INCREMENTAL=0 cargo clippy -p datalens-cli --lib --tests -- -D warnings
  • git diff --check

@fewensa
fewensa merged commit 223e7b2 into main Jul 8, 2026
1 check passed
@fewensa
fewensa deleted the fix-v2-compaction-chain-scheduling branch July 8, 2026 21:14
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