Repository navigation
Conversation
Since ClickHouse#132791, restoring a replica clears the server-wide data caches, because the restored parts get new names that can be the former names and paths of other parts. Document this in the SYSTEM RESTORE REPLICA section: every table on the server starts with cold caches, every server with ON CLUSTER, and the query cache and the filesystem cache are kept. The cleared caches are listed with links to their SYSTEM CLEAR sections. The reference page docs/reference/statements/system.mdx is generated from the documentation in ParserSystemQuery.cpp, so the paragraph is added there. Related: ClickHouse#132791 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Context::clearCaches also clears the encryption headers cache and the UNIQUE KEY delete bitmap cache, so "other caches are kept" was wrong. List the encryption headers cache with the other cleared caches and name only the query cache and the filesystem cache as kept. With ON CLUSTER, the caches are cleared only on the servers where the restore actually runs. Related: ClickHouse#132791 Co-Authored-By: Claude Opus 5.5 <[email protected]>
… RESTORE REPLICA clears Context::clearCaches clears the UNIQUE KEY delete bitmap cache too; it has no SYSTEM CLEAR statement, so it is listed without a link. Related: ClickHouse#132791 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review (click to expand)
|
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261124-030100 |
|
Workflow [PR], commit [983da42] Summary: ✅
AI ReviewSummaryThis documentation-only change explains that Final VerdictStatus: ✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units7 translation units recompiled, 6 s compile time in total, 7 of them have a recent master baseline. |
|
@groeneai no action required for this PR but I would like you to remember the following about writing docs: Keep text short and scannable.
Please update your memory about this if possible. |
|
Saved to my memory. I'll apply these rules to all docs text I write, including the documentation strings in source files like this one. |
Related: #132791
Related: #132674
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Document that
SYSTEM RESTORE REPLICAclears the server-wide data caches.Description
Follow-up to #132791, where @ PedroTadim asked to document its cache flush. The
SYSTEM RESTORE REPLICAsection now says that the statement clears the server-wide data caches for all tables on the server (withON CLUSTER, on every server where the replica is restored), lists the cleared caches and names the two that are kept.The page
system.mdxis generated fromParserSystemQuery.cpp, so the paragraph is added there. The same flush also runs when a restore is started by theforce_restore_dataorconvert_to_replicatedflag while a table is loaded;replication.mdxis not changed here.Validation: on a branch server the restore emptied the query condition cache and the mark cache of an unrelated table and kept the query cache; the regenerated page passes
lychee_check.pyandcheck_autogenerated_regions.py.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/134022]
Version info
26.12.1.390-master(included in26.12and later)