Repository navigation
Conversation
QA LLM Review1. MEDIUM --
|
d460f14 to
050855f
Compare
050855f to
a87206f
Compare
a87206f to
2469218
Compare
2469218 to
238d0d5
Compare
238d0d5 to
19e104c
Compare
19e104c to
fa959cc
Compare
fa959cc to
dc4e800
Compare
dc4e800 to
89f23bc
Compare
89f23bc to
acfbd15
Compare
acfbd15 to
8ebd13d
Compare
8ebd13d to
d73cb95
Compare
d73cb95 to
5a3b3f3
Compare
7473a69 to
55f3031
Compare
55f3031 to
a6353e1
Compare
a6353e1 to
4e54a48
Compare
4e54a48 to
7e75035
Compare
7e75035 to
2859180
Compare
7ac74ba to
b80a570
Compare
b80a570 to
7ac74ba
Compare
a809ec6 to
f10da0d
Compare
f10da0d to
a3a6f8b
Compare
a3a6f8b to
f84d5da
Compare
The publishing runtime reports, once a second, the largest gap between the logical compaction frontier an arrangement's own handles allow and the one the readers' holds let it apply, and how many arrangements have a gap. Only logical compaction is measured, not physical holds or batches a reader's chain pins. Frozen slots are not measured. Their points stop publishing frontiers once the writer closes, but the trace can live on while a same-thread agent holds it, and the readers of the frozen points still hold it back. The metric is blind to that case. Co-Authored-By: Claude Opus 5.5 <[email protected]>
13 of 14 in the interactive-runtime stack. Stacks on #38678, followed by #40559. Tracked by CPU-216. The design document is
doc/developer/design/20261107_interactive_runtime.mdin #40559.Publishing an arrangement couples its compaction to the importing runtime's drain rate: a shared trace applies the meet of what its own handles allow and what the readers hold. Before this the coupling was invisible.
mz_compute_shared_arrangement_hold_gap_msis the largest gap, over the arrangements a worker publishes, between the logical compaction frontier the publishing trace's own handles allow and the one the readers' holds let it apply, in timestamp units (milliseconds in the epoch-millisecond timeline).mz_compute_shared_arrangement_held_countis how many have a gap at all. Each publication point records what the trace's same-thread agents asked for (requested_logical) beside thesincethe trace applied, and the gap is the difference. Reported at most once a second, since a report takes the registry lock and up to four point locks per published index. Reported from the runtime's publishing registry, so a runtime that publishes nothing reports zero and asumormaxover therolelabel stays correct.Two blind spots, stated next to
hold_gaps:Zero is the healthy reading: both runtimes get the same
AllowCompaction, so an interactive runtime that drains promptly leaves the two frontiers equal. Measured on an 8-worker replica under continuous churn, the gauges read zero with no reader and peaked at one compaction round with 31 arrangements held while 509 interactive joins ran over the published index.Tests:
logical_frontiers_report_what_the_holds_withholdinshared_trace/tests.rsanda_frozen_slot_reports_no_hold_gapinsharing/tests.rs.A reviewer should check the throttle in
compute_state.rsand that the metric help texts inmetrics.ymlstate both blind spots.Posted by Claude Code.
🤖 Generated with Claude Code