Repository navigation
Always run access cache batch-finished handlers, even on empty batch - #108124
Conversation
After PR ClickHouse#107672 a coalesced rebuild that threw left its need_* flag set, but the retry was gated on `sent_any`, so sendNotifications re-ran batch handlers only on batches that delivered an event. Stale quota/role/row-policy/ settings state then persisted until an unrelated change queued a notification (an up-to-date `SYSTEM RELOAD USERS` diffs to zero and never retried). Run the handlers unconditionally; they early-return when idle. Refs: ClickHouse#107672 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Workflow [PR], commit [cc61bc1] Summary: ✅
AI ReviewSummaryThe PR makes PR Metadata
Findings💡 Nits
Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 36/36 (100.00%) | Lost baseline coverage: none · Uncovered code |
Cherry pick #108124 to 26.3: Always run access cache batch-finished handlers, even on empty batch
…lers, even on empty batch
Cherry pick #108124 to 26.4: Always run access cache batch-finished handlers, even on empty batch
…lers, even on empty batch
Cherry pick #108124 to 26.5: Always run access cache batch-finished handlers, even on empty batch
…lers, even on empty batch
Backport #108124 to 26.5: Always run access cache batch-finished handlers, even on empty batch
Backport #108124 to 26.4: Always run access cache batch-finished handlers, even on empty batch
Backport #108124 to 26.3: Always run access cache batch-finished handlers, even on empty batch
After PR #107672 a coalesced rebuild that threw left its need_* flag set, but the retry was gated on
sent_any, so sendNotifications re-ran batch handlers only on batches that delivered an event. Stale quota/role/row-policy/ settings state then persisted until an unrelated change queued a notification (an up-to-dateSYSTEM RELOAD USERSdiffs to zero and never retried). Run the handlers unconditionally; they early-return when idle.Refs: #107672
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Always run access cache batch-finished handlers, even on empty batch
Version info
26.6.1.112726.5.4.11,26.4.5.72,26.3.16.12