Skip to content

feat(storage): support runtime file cache clearing - #26577

Open
Li0k wants to merge 1 commit into
risingwavelabs:mainfrom
Li0k:li0k/hummock-file-cache-clear
Open

feat(storage): support runtime file cache clearing#26577
Li0k wants to merge 1 commit into
risingwavelabs:mainfrom
Li0k:li0k/hummock-file-cache-clear

Conversation

@Li0k

@Li0k Li0k commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

What's changed

  • Extend the existing ResizeCacheRequest with independent meta/data clear flags.
  • Clear the corresponding ComputeNode HybridCache tiers through the existing hummock resize-cache fan-out.
  • Add --clear-meta-cache and --clear-data-cache to risectl hummock resize-cache.
  • Add a behavior test covering clear, cache miss, refetch from object storage, and cache refill.

Semantics

This is a best-effort per-ComputeNode operation, not a globally atomic freeze. In-flight reads may repopulate entries, and the existing fan-out can complete partially if a node fails. The operation does not require a restart; subsequent reads refill the cache normally.

Validation

  • cargo fmt --all
  • cargo test -p risingwave_storage test_clear_file_cache_and_refetch --lib
  • cargo check -p risingwave_compute -p risingwave_ctl
  • cargo clippy --workspace --all-targets -- -D warnings 2>&1
  • git diff --check

@Li0k
Li0k force-pushed the li0k/hummock-file-cache-clear branch from 7b6c985 to d596c75 Compare August 4, 2026 11:52

Li0k commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

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