docs: trace the chunk-state slot fence to its model rules

This commit is contained in:
pingqiu committed 2026-11-30 03:09:02 -08:00
1 parent c13cb1641a
commit 6c5a1b42e4
2 files changed
+8

No files matched your search

+2
View File
@@ -115,6 +115,8 @@ core/storage/chunk_layer.go HolderInterface.StopCommit
core/storage/chunk_layer.go MoveAdmission.Detach
core/storage/chunk_layer.go MoveAdmission.Publish
core/storage/chunk_layer.go SnapshotRemoval.Write
core/storage/chunk_state_upgrade.go SlotFence.Publish
core/storage/chunk_state_upgrade.go SlotFence.Sync
core/transport/catchup_sender.go ReplicationPeer.CatchUp
core/transport/rebuild_sender.go ReplicationPeer.Rebuild
core/transport/replica.go FencingRound.Recv
1 # Exact repository-relative path<TAB>Module.Action; repeat a path for alternatives.
115 core/storage/chunk_layer.go
116 core/storage/chunk_layer.go
117 core/storage/chunk_layer.go
118 core/storage/chunk_state_upgrade.go
119 core/storage/chunk_state_upgrade.go
120 core/transport/catchup_sender.go
121 core/transport/rebuild_sender.go
122 core/transport/replica.go
@@ -0,0 +1,6 @@
model item kind go_function tests status note
SlotFence 146: both marked slots before completion rule core/storage/chunk_state_upgrade.go:WALStore.FenceChunkStateUpgrade core/storage/chunk_state_upgrade_test.go:TestChunkStateUpgradeFencesBothSlotsBeforeCompletion,core/storage/chunk_state_upgrade_test.go:TestChunkStateUpgradeUncertainSecondSlotRequiresReopen STUB Store completion boundary only; record-header caller remains unwired. Single-publication mutant fails.
SlotFence 147: count a slot only after sync and readback rule core/storage/descriptor_v3.go:descriptorPublisherV3.publishLockedCoreV3; core/storage/chunk_state_upgrade.go:WALStore.FenceChunkStateUpgrade core/storage/chunk_state_upgrade_test.go:TestChunkStateUpgradeFailureNeverCompletesUntilReopen STUB Six injected write/sync/readback failures refuse completion and latch until reopen; unlatched-readback mutant fails.
SlotFence 148: preserve the minimum decoded-slot WAL tail premise core/storage/descriptor_v3.go:descriptorPublisherV3.reuseFloorLocked; core/storage/wal_io_v3.go:walWriterV3.append core/storage/descriptor_v3_test.go:TestDescriptorV3FullRingRolloverAdvancesTheFloorWithoutAnyChange; core/storage/chunk_state_upgrade_test.go:TestChunkStateUpgradeUncertainSecondSlotRequiresReopen CONFIRMED Existing writer uses the minimum retained tail of both decoded slots; half-upgrade boundary changes no WAL bounds.
SlotFence 149: reject cached pages behind store positions integration OWED New record-page reader is stacked in PR 816; no assertion here that the store-fence component implements the page-position check. This premise must be confirmed in integrated code before activation.
SlotFence reopen after an old writer erases the marker witness core/storage/walstore_v3.go:openWALStoreV3File; core/storage/chunk_state_upgrade.go:WALStore.FenceChunkStateUpgrade core/storage/chunk_state_upgrade_test.go:TestChunkStateUpgradeOldReaderPublicationRestartsTheFence STUB Captured legacy descriptor bytes simulate the old metadata publication; no released binary execution claimed. Caller must rebuild legacy-derived pages before completing again.
1 model item kind go_function tests status note
2 SlotFence 146: both marked slots before completion rule core/storage/chunk_state_upgrade.go:WALStore.FenceChunkStateUpgrade core/storage/chunk_state_upgrade_test.go:TestChunkStateUpgradeFencesBothSlotsBeforeCompletion,core/storage/chunk_state_upgrade_test.go:TestChunkStateUpgradeUncertainSecondSlotRequiresReopen STUB Store completion boundary only; record-header caller remains unwired. Single-publication mutant fails.
3 SlotFence 147: count a slot only after sync and readback rule core/storage/descriptor_v3.go:descriptorPublisherV3.publishLockedCoreV3; core/storage/chunk_state_upgrade.go:WALStore.FenceChunkStateUpgrade core/storage/chunk_state_upgrade_test.go:TestChunkStateUpgradeFailureNeverCompletesUntilReopen STUB Six injected write/sync/readback failures refuse completion and latch until reopen; unlatched-readback mutant fails.
4 SlotFence 148: preserve the minimum decoded-slot WAL tail premise core/storage/descriptor_v3.go:descriptorPublisherV3.reuseFloorLocked; core/storage/wal_io_v3.go:walWriterV3.append core/storage/descriptor_v3_test.go:TestDescriptorV3FullRingRolloverAdvancesTheFloorWithoutAnyChange; core/storage/chunk_state_upgrade_test.go:TestChunkStateUpgradeUncertainSecondSlotRequiresReopen CONFIRMED Existing writer uses the minimum retained tail of both decoded slots; half-upgrade boundary changes no WAL bounds.
5 SlotFence 149: reject cached pages behind store positions integration OWED New record-page reader is stacked in PR 816; no assertion here that the store-fence component implements the page-position check. This premise must be confirmed in integrated code before activation.
6 SlotFence reopen after an old writer erases the marker witness core/storage/walstore_v3.go:openWALStoreV3File; core/storage/chunk_state_upgrade.go:WALStore.FenceChunkStateUpgrade core/storage/chunk_state_upgrade_test.go:TestChunkStateUpgradeOldReaderPublicationRestartsTheFence STUB Captured legacy descriptor bytes simulate the old metadata publication; no released binary execution claimed. Caller must rebuild legacy-derived pages before completing again.