mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
82e9018bae252c846812a0f72165f58c8a9c563a
QA round 12 self-test on m01: m01verify reported MISMATCH on LBA 0 — but inspecting the bytes via xxd showed the primary's on-disk file matched the replica's, both 0x78 (ASCII 'x') × 4096. Replication chain is correct; the script wrote the wrong bytes. Root cause: the script used 'tr "\0" "\xab"' which DOES NOT produce 0xab. tr's escape grammar recognizes only octal (\NNN) and a small set of letter escapes (\n, \t, ...); \xHH is not understood — tr substitutes with the literal first char of the replacement string, which is '\' parsed loosely giving 'x' (0x78). Verified empirically on m01: $ dd if=/dev/zero bs=4096 count=1 2>/dev/null | tr "\0" "\xab" | xxd | head -1 00000000: 7878 7878 7878 7878 7878 7878 7878 7878 xxxxxxxxxxxxxxxx Fix: use python3 binary write — guaranteed byte-exact 0xab fill: python3 -c "...sys.stdout.buffer.write(b'\xab' * 4096)..." Round 12 part C result on m01: ✓ verify_cluster_ready ✓ verify_byte_equal — m01verify reports 'OK 1 LBA(s) byte-equal' This is the FIRST end-to-end PASS of acceptance criterion #2 on real hardware. The replication chain (lineage latch + ship + barrier + apply) is verified working. verify_network_catchup still hits H-advance false-positive (engine state semantic is probe-driven, not local-write-driven; same as fix in #2 but applied per-step); will address next. Refs: round 12 m01 self-test full progression (rounds 1-11 surfaced 14 distinct bugs each isolated and fixed).
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%