pingqiu 2c1ee6e3e5 G5-5 round 12: drop H-advance preflight in verify_byte_equal
Engine's Recovery.H is updated by probe events
(RecoveryFactsObserved), not by local writes. At adoption time
engine sets H = walHead = nextLSN (already 1 for empty walstore);
local write at LSN=1 advances nextLSN to 2 internally, but
Recovery.H stays at 1 until a probe re-reads boundaries. Using
H-advance as a 'silent write failure' preflight produces a false
positive — H stays at 1, check fails, but the actual write +
ship + barrier all completed (per primary log evidence).

Round 11+12 m01 evidence shows the full chain flows:
  durable: dp.Open latching identity volume=v1 replica=r1 epoch=1 ev=1
  durable: StorageBackend.SetIdentity latched ...
  iscsi: SCSI WRITE handler lba=0 transferLen=8 dataOut=4096
  durable: StorageBackend.Write entry offset=0 len=4096
  durable: write observer dispatch lba=0 lsn=1
  replication: OnLocalWrite volume=v1 lba=0 lsn=1 peers=1
  transport: ship lazy-dial replica=r2 ok
  replication: ship ok peer=r2 lba=0 lsn=1
  iscsi: SCSI WRITE backend.Write ok lba=0
  iscsi: SCSI SYNCHRONIZE_CACHE handler entry
  replication: barrier wait peer=r2 targetLSN=1 epoch=1
  replication: barrier ack peer=r2 targetLSN=1 achievedLSN=1
  iscsi: SCSI SYNCHRONIZE_CACHE backend.Sync ok

Replication is working end-to-end on m01+M02 hardware.

Fix: replace H-advance check with informational log; let
m01verify byte-equal compare be the actual proof. Same change
unchanged for verify_network_catchup and verify_restart_catchup
(they still use H comparisons but for different semantics —
catch-up convergence, where H is the engine-level boundary and
the comparison is against replica's R, which the engine DOES
update on session completion).

Refs: round 12 self-test on m01 cross-node — chain flows
end-to-end; H-advance was the only false-positive blocking
m01verify from running.
2026-04-27 01:34:46 -07:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%