← Open Source & Engineering Work
eBay Open Source · eBay/NuRaftMerged · NuRaft Core (PR #663)

Fix concurrent snapshot finalization race (#663)

Sole Author: Patrick Ribbsaeter (@patrickswedish) · Immutable Commit SHA: 503deae0a73c307170f913961974eedbae496442

C++ Raft consensus state-machine fix serializing concurrent snapshot finalization callbacks so overlapping InstallSnapshot RPC streams cannot corrupt committed state.

Fix concurrent snapshot finalization race (#663)

PR #663

Merged Mainline

503deae

Immutable Git SHA

C++

Systems

Linux Raft Suite Green

CI & Test Matrix

01 · Engineering problem

The failure mode

Concurrent snapshot installation and normal AppendEntries heartbeats could race during snapshot sync finalization in NuRaft, corrupting state-machine commit index invariants.

02 · Technical response

What changed

  1. 01Synchronized snapshot finalization state transitions against concurrent replication handlers in NuRaft's C++ core.
  2. 02Added deterministic multi-threaded Raft snapshot race regression tests.

03 · Verified outcome

Evidence-backed result

  • ✓Prevented concurrent snapshot sync finalization races in eBay's NuRaft consensus engine.
  • ✓Merged upstream into eBay/NuRaft as commit 503deae0a73c307170f913961974eedbae496442.

04 · Cryptographic Git record

Immutable source evidence

C++eBay NuRaftRaft ConsensusDistributed SystemsConcurrency

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.