Repository navigation
Committed storage discipline (#392) + cluster crash durability (#395) - #401
Merged
Merged
Conversation
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #392 (Committed durability discipline) and the two #395 cluster crash-durability fixes, plus a host-crash hardening found under load.
Design doc:
claude/design/Ecs/committed-storage-mode.md(rev 3). Docs PR: nockawa/typhon-claude#52.#392 — Committed durability discipline
Runtime
DurabilityDiscipline { TickFence (default) | Commit }knob on theSingleVersionlayout (not a newStorageMode). Commit-discipline writes are staged per-tx (Variant A — native arena), made atomic + zero-loss durable atTransaction.Commitvia the unifiedSlotRecord, then published in place to the cluster/flat HEAD. Read-committed, O(1) rollback, no revision chain. Exact B+Tree index reconciled at commit (spatial stays fence-batched for all modes).#395 — cluster crash durability
SingleVersioncomponent values per-commit, so a crash before the next checkpoint recovers the entity with its values (was alive-but-default). ClusterRecoveryApplierincrement added.Host-crash hardening (top-priority, found under load)
DagScheduler.ExecuteCallbacksruns the tick on the raw timer thread; an unhandled tick exception aborted the process. Added an outer safety net mirroringWorkerLoop(log + surface viaUnhandledExceptionCallback, drop the tick). Root teardown race (view-dispose vs in-flight tick) documented as a separate follow-up; benign with this net in place.Acceptance criteria
Disciplinebranch only)SlotRecord, no Committed-specific recovery code)ReadsSnapshoton non-Versioned atBuild()(CM-04)MixedDisciplinecrash sweep (benchmarks now recorded — see AC-5)Tests
Full suite: 3940 passed, 18 failed, 34 skipped — zero new reds (all 18 failures proven pre-existing baseline: spatial BulkLoad timeouts, OlcBTree #133 backpressure, lock-timeout-leak, CollectibleAlc, and the stale
RunCheckpointCycle_NoDirtyPageswhich fails identically onmain). No host crash across two full runs. New tests:CommittedDisciplineTests(AC unit),CommittedDisciplineRecoveryTests(AC-2/7 + #395 capstone),ReadsSnapshot_OnSingleVersionComponent_ThrowsAtBuild(CM-04),TickThread_UnhandledOrchestrationException_SurfacedNotHostCrash(host-crash regression),MixedDisciplinecrash-sweep cells.🤖 Generated with Claude Code