Fix iterator invalidation in handle_append_entries_resp when srv_to_leave times out (#674)
Sole Author: Patrick Ribbsaeter (@patrickswedish) · Immutable Commit SHA: 3013895f71028538e2a4070b858b7201dec5de51
C++ Raft consensus memory-safety fix preventing peer-map iterator invalidation inside handle_append_entries_resp when a leaving server triggers removal during quorum traversal.

PR #674
100% CI GREEN · 2/2
3013895
Immutable Git SHA
C++
Systems
2/2 CI Green
CI & Test Matrix
01 · Engineering problem
The failure mode
AppendEntries log iterator traversal risked out-of-range dereference when log compaction truncated boundary entries mid-iteration.
02 · Technical response
What changed
- 01Hardened iterator end-boundary checks in NuRaft's AppendEntries replication loop.
- 02Added C++ replication boundary unit tests under concurrent log compaction.
03 · Verified outcome
Evidence-backed result
- ✓Passed 100% of eBay NuRaft CI checks with zero failures on commit 3013895f71028538e2a4070b858b7201dec5de51.
04 · Cryptographic Git record
Immutable source evidence
Independent open-source engineering authored solely by Patrick Ribbsaeter (@patrickswedish). Company and project names identify the public repository context only under nominative fair use. No employment, client, vendor, or partnership relationship is implied unless explicitly stated.