Skip to content

feat(sql): add ALTER SYSTEM file cache clear - #26578

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

feat(sql): add ALTER SYSTEM file cache clear#26578
Li0k wants to merge 1 commit into
risingwavelabs:li0k/hummock-file-cache-clearfrom
Li0k:li0k/hummock-file-cache-clear-sql

Conversation

@Li0k

@Li0k Li0k commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR is stacked on #26577 and adds a SQL entry point for the runtime file-cache clear RPC:

ALTER SYSTEM CLEAR FILE CACHE META;
ALTER SYSTEM CLEAR FILE CACHE DATA;
ALTER SYSTEM CLEAR FILE CACHE ALL;
  • Require superuser privileges in the Frontend handler.
  • Add a Meta RPC that fans out to all ComputeNodes.
  • Reuse the existing ResizeCacheRequest clear flags and runtime HybridCache::clear() implementation.
  • Return an error if a ComputeNode cannot be cleared.

The first commit is the base implementation from #26577; the incremental SQL change is commit 3f42fc848a.

Validation

  • cargo test -p risingwave_sqlparser parse_alter_system_clear_file_cache
  • cargo check -p risingwave_meta_service -p risingwave_frontend -p risingwave_rpc_client -p risingwave_sqlparser
  • cargo fmt --all
  • git diff --check

@Li0k
Li0k requested a review from a team as a code owner August 4, 2026 11:58
@Li0k
Li0k requested review from chenzl25 and removed request for a team August 4, 2026 11:58
@Li0k
Li0k changed the base branch from main to graphite-base/26578 August 4, 2026 12:11
@Li0k
Li0k changed the base branch from graphite-base/26578 to li0k/hummock-file-cache-clear August 4, 2026 12:11

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