From e332c4c300bd39ba9b2da797391e37ddebda5319 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 24 Nov 2026 06:03:39 -0300 Subject: soak: a join's dump that loads as another session says the fields it differs by, as a client's join says them (replica.fromDump's words: `loadDiffers` made pub): the coordinator's merge67b release soak had 'seed 3 rtt 207 ms: client 3's dump loaded as another session' and no field (1 in 12 seed-runs), not reproduced yet Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/replicas.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/replicas.zig') diff --git a/test/replicas.zig b/test/replicas.zig index 3aa9263e..cd0a3459 100644 --- a/test/replicas.zig +++ b/test/replicas.zig @@ -1986,7 +1986,9 @@ const Soak = struct { rp.echo.now = m.at * 1000; if (!rp.loaded(cl.digest)) { s.totals.unequal += 1; - std.debug.print("seed {d} rtt {d} ms: client {d}'s dump loaded as another session\n", .{ s.r.seed, s.r.rtt_ms, m.who }); + // The fields it differs by, as a client's join says them (replica.fromDump). + var named: [400]u8 = undefined; + std.debug.print("seed {d} rtt {d} ms: client {d}'s dump loaded as another session: {s}differs\n", .{ s.r.seed, s.r.rtt_ms, m.who, replica.loadDiffers(rp, m.bytes, &named) }); } cl.live = m.gen; var j: replica.Joined = .{ .fd = cl.cfd, .pid = 0, .client = cl.id, .view = cl.view, .gmtoff = 0, .dump = &.{} }; -- cgit v1.3