test(raft): cold-node rejoin and wiped-node join e2e

Includes two raft fixes the e2e exposed:
- heartbeatLoop drops cached peer sockets on leadership acquisition
  (half-dead sockets to a restarted peer never errored, so no redial
  ever happened and the cluster livelocked without heartbeats)
- restoreSnapshot repoints tcpServer ctx/db at the reopened database
  (queries kept reading the closed pre-restore LSM, serving 0 rows)
This commit is contained in:
2026-07-31 03:53:48 +03:00
parent 9ff9c2f6be
commit ad90ebcd5e
6 changed files with 513 additions and 1 deletions
+1
View File
@@ -31,6 +31,7 @@ task test, "Run all tests":
"test_schema_persist", "test_storage_hardening", "tla_faithfulness",
"nimforum_smoke_test", "raft_e2e_test", "raft_writes_e2e_test",
"raft_failover_load_e2e_test", "raft_tls_e2e_test",
"raft_coldnode_e2e_test",
"fuzz_test", "prop_test",
"test_wire_insert_stress", "stress_test"]:
exec "nim c -r tests/" & t & ".nim"