Files
seaweedfs/seaweed-block/cmd/blockvolume/testdata/onezero-wrong-geometry-store.txt
T
pingqiuandClaude Opus 5.5 f1227debce fix(blockvolume): refuse geometry flags that disagree with the volume record before creating a store
INV-VOL-GEOMETRY-FLAGS-RECORD-001. A create-mode start whose
--durable-blocks/--durable-blocksize disagree with the volume record exits 78
(no restart) with a line naming both geometries, before the durable provider
is built, so no local store of the wrong size is created. An existing local
store is never rechecked against the flags (its geometry is checked at
attach, as before); a missing record keeps the create path; an unreadable
record falls through to the attach check.

Tests: TestGeometryFlagsRefusalComparesTheRecord (unit);
TestWrongGeometryFlagIsRefusedBeforeTheStoreIsCreated (real binaries, red on
the previous main: exit 75 after 35 s and a wrong-size store). The cure for a
store an earlier release left stays: TestWrongGeometryCureAsWritten plants
that store from a readable text fixture of a 2129a736 capture (sha256 checked
per file); the operator guide scopes the cure to such a store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:51:02 -08:00

74 lines
2.0 KiB
Plaintext

# The wrong-size local store a 1.0 first start left (3402e0dd, the 1.0 RC):
# v2 restored with a 65536-block record, started with --durable-blocks 32768;
# captured from that run on tp04 (archive sha256
# 0905c3af83b3a1dc226b417fa5acf7071907cc3e53478bc14a531481b717c5c1).
# "file <name> <size> <octal mode>", then "<offset> <hex>" for each run of
# non-zero bytes; every other byte is zero.
file v2.bin 201334784 644
0 5357424b030000000100000003000000d1d56a0491714e5ea87e7a1ff22252a3
32 000000080000000000000100001000000020
59 04000000007c6a6946b4d0ea1803
128 9888ed4bd8dfd3b290cc22e299420293
160 010000000000000001
177 10
192 29f7e5d0870411c13727a4bdcbba5f87500df26b1acd9540474cc3e82ed68b9b
224 8fb886e363d422e93964d61f856aed8c
4092 0ca0c6b05357424b030000000100000003000000d1d56a0491714e5ea87e7a1f
4124 f22252a3000000080000000000000100001000000020
4155 04000000007c6a6946b4d0ea1802
4224 9888ed4bd8dfd3b290cc22e299420293
4256 010000000000000001
4273 10
4288 29f7e5d0870411c13727a4bdcbba5f87500df26b1acd9540474cc3e82ed68b9b
4320 8fb886e363d422e93964d61f856aed8c
8189 c521d7
file v2.bin.chunkfresh 6 644
0 66726573680a
file v2.bin.chunkmap 8192 600
0 434c4d3301000000d1d56a0491714e5ea87e7a1ff22252a38fb886e363d422e9
32 3964d61f856aed8c01
56 20
72 01
88 01
104 01
120 01
136 01
152 01
168 01
184 01
200 01
216 01
232 01
248 01
264 01
280 01
296 01
312 01
328 01
344 01
360 01
376 01
392 01
408 01
424 01
440 01
456 01
472 01
488 01
504 01
520 01
536 01
552 01
568 01
4064 34dec2669b9f5a0e9debd807e6541bb65c2cee5aa86640399e621ac1a8a20cb2
4096 434c523301000000d1d56a0491714e5ea87e7a1ff22252a38fb886e363d422e9
4128 3964d61f856aed8c010000000000000020
4153 04
4168 0100000000000000a0
4192 34dec2669b9f5a0e9debd807e6541bb65c2cee5aa86640399e621ac1a8a20cb2
4224 29f7e5d0870411c13727a4bdcbba5f87500df26b1acd9540474cc3e82ed68b9b
file v2.replica-floor 71 644
0 7b22736368656d61223a22736561776565642d626c6f636b2e7265706c696361
32 2d666c6f6f722f7631222c22766f6c756d655f6964223a227632222c2265706f
64 6368223a307d0a