test(raft): E2E replicated writes; wire SQL path to raft node

- Fix runTcpServer to run the already-wired Server (raftNode was assigned
  on a different instance that never accepted clients).
- Cap raft peer connect at 200ms and fan out heartbeats in parallel so a
  dead peer cannot stall AppendEntries to the live majority.
- Add raft_writes_e2e_test: 3-node write replication, follower rejection,
  and post-failover writes; wire into nimble test + gitignore.
This commit is contained in:
2026-07-30 21:06:49 +03:00
parent 333941ab65
commit 44060701b7
5 changed files with 373 additions and 9 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ task test, "Run all tests":
# Quick embedded suites first, heavy fuzz/stress suites last.
for t in ["test_minimal", "test_all", "bugfix_test", "join_tests", "test_lock",
"test_schema_persist", "test_storage_hardening", "tla_faithfulness",
"nimforum_smoke_test", "raft_e2e_test", "fuzz_test", "prop_test",
"nimforum_smoke_test", "raft_e2e_test", "raft_writes_e2e_test",
"fuzz_test", "prop_test",
"test_wire_insert_stress", "stress_test"]:
exec "nim c -r tests/" & t & ".nim"