Repository navigation
fix(durable): land checkpoints when tick barriers step over the interval - #237
Conversation
62baca3 to
83ecbc2
Compare
83ecbc2 to
bce6f35
Compare
bce6f35 to
ab5eb13
Compare
ab5eb13 to
52bf074
Compare
52bf074 to
89ffcbe
Compare
89ffcbe to
ed08880
Compare
ed08880 to
a565080
Compare
a565080 to
63db9e4
Compare
63db9e4 to
7120b33
Compare
7120b33 to
785fea6
Compare
fd39fb6 to
6426343
Compare
6426343 to
6698028
Compare
6698028 to
5a44b97
Compare
5a44b97 to
38fa17d
Compare
38fa17d to
2dcccbb
Compare
2dcccbb to
b3d0e06
Compare
|
Review results. One reviewer per dimension, each reading the others' findings. All seven dimensions have zero blockers on the latest round. Fixed along the way: a test the new cadence had stopped exercising now pins a non-empty tail, and the Known limit: |
|
Review results. Re-ported onto #236. One AI reviewer per dimension this change touches, each in a clean context: correctness, regression-safety, replay-determinism, API compatibility and human readability. Every one has zero blockers. Concurrency and missed context are untouched by this change and keep their earlier confirmation. What the reviewers checked:
Fixed along the way (2f81ae3): the
|
A tick barrier spans several step ordinals, so WithCheckpointEvery could miss its multiple forever and the tail grew without limit. A checkpoint now lands on any step that crosses a boundary. Relates to #214. Signed-off-by: Ray Karnes <ray.karnes@stablekernel.com>
WithCheckpointEvery's godoc now says a checkpoint lands after a step whose span crosses a multiple of n, and that an idle Tick takes no ordinal. The CHANGELOG says what StateAt returns with an empty tail. The cadence test also ticks the recovered Handle. Signed-off-by: Ray Karnes <ray.karnes@stablekernel.com>
|
A known gap, out of scope here: with this change a timer-driven instance compacts, so on a Store without |
What this change does
A checkpoint now lands on any step that crosses a
WithCheckpointEveryboundary. Stacked on #236. This is the top of the #214 chain.checkpointDuecompares the ordinals a Record spans, not its own Step. For a plain step the cadence is unchanged. ATickRecord can now checkpoint on a step other than N−1, 2N−1 and so on. Such an instance now compacts, so on a Store withoutHistoryStore,StateAtcan't reach the steps before its latest checkpoint. It answers with the checkpoint's state; with an empty tail, any step afterBaselineStepreturnsErrStepOutOfRange, as it already did for a run of Fires.Why
A
TickRecord spans several step ordinals, so it could miss the interval forever and the tail grew without limit. A review of #232 found this. It isn't listed in #214.Still open in #214 after this chain: telemetry on replay (question 7), which #214 defers, and the machine version opt-in (question 6). Question 4 is #263, and question 8 waits for a ruling on #236.
Relates to: #214
Evidence
On
GOTOOLCHAIN=go1.27.4:go test -race ./...indurableTestTimerCheckpoint_BarriersCannotStepOverTheIntervalfails on the old formula with a 52-record tail after 50 ticksmage check(lint, race tests, govulncheck)Checklist
git commit -s) per the DCOtype: subject)mage checkpasses locally (lint + race tests + govulncheck)