txn_limbo: fence upon receiving raft term greater than queue term
Receiving a raft term greater than the current queue term means that someone has either already written PROMOTE (in case elections are disabled), or is going to write PROMOTE once he wins the elections (in case they are enabled). In both cases the queue owner in an old term should freeze the limbo until queue term catches up with raft term. Unfreezing happens automatically once synchro queue term catches up. Part-of #5295 NO_DOC=covered by next commit
Showing
- changelogs/unreleased/gh-5295-split-brain-detection.md 4 additions, 0 deletionschangelogs/unreleased/gh-5295-split-brain-detection.md
- src/box/raft.c 7 additions, 0 deletionssrc/box/raft.c
- src/box/txn_limbo.c 5 additions, 4 deletionssrc/box/txn_limbo.c
- test/replication-luatest/gh_6842_qsync_applier_order_test.lua 4 additions, 4 deletions.../replication-luatest/gh_6842_qsync_applier_order_test.lua
Loading
Please register or sign in to comment