Repository navigation
Conversation
|
Workflow [PR], commit [44a16a6] Summary: ✅
AI ReviewSummaryThe PR shuts down databases concurrently and adds a repeated background-writer stop and buffer-drain barrier. One data-loss path remains: the barrier excludes user-created tables in predefined databases, so it does not cover every buffer or producer whose destination can shut down. Findings❌ Blockers
Tests
Final VerdictStatus: ❌ Block Include user-created storages in predefined databases in the shutdown barrier and cover their buffered rows with a regression test, or explicitly track this pre-existing data-loss defect in a linked issue. Provide shutdown timing evidence for the performance claim. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes272 object files changed (+214.39 KiB total), 0 added.
716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units2206 translation units recompiled, 7480 s compile time in total, 2206 of them have a recent master baseline. |
b663224 to
6de1e97
Compare
…t resolve other tables
…izedPostgreSQL` before draining buffers
…ous `QueryRunner` that still has jobs
…e last background writers stop
… unlocked during shutdown, always stop `QueryRunner` early
…close the open `NATS` batch when preparing for shutdown
…, and do not list external databases on shutdown
…stop pass until no new background writer appears
…ed by the drain is stopped too
…p after a drain finds the writers it loaded
…and test that a background writer stops before the flush
Server shutdown visited databases one at a time, so with many small databases it stayed almost serial even after #104969. Now databases shut down concurrently. Tables that write into others in the background (
FileLog,Kafkawithkafka_keeper_path,NATS,QueryRunner, refreshable materialized views,MaterializedPostgreSQL) stop beforeBuffertables are flushed, so their rows are no longer lost, and shutdown no longer lists external databases.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Faster server shutdown with many databases, which now shut down concurrently. Tables that write into others in the background stop before
Buffertables are flushed, so their rows are no longer lost.Workflow [PR]
Sync PR [sync-upstream/pr/128923]