replication: don't rollback qsync limbo wait on fiber cancel
During iproto graceful shutdown which is WIP we cancel all iproto request in progress. This causes election_qsync_stress test failure. We shutdown master on waiting transaction confirmation from quorum (which is never exist in this test). Currently on shutdown we rollback transaction in this state. So that when previous master is restarted after electing new master we don't expect the rollback on previous master. Let's keep the transaction in limbo if fiber is cancelled as our direction is to do only quorum rollbacks. Part of #8423 Closes #9480 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-9480-dont-rollback-on-quorum-wait-cancel.md 4 additions, 0 deletions...unreleased/gh-9480-dont-rollback-on-quorum-wait-cancel.md
- src/box/txn.c 9 additions, 2 deletionssrc/box/txn.c
- src/box/txn_limbo.c 2 additions, 0 deletionssrc/box/txn_limbo.c
- src/box/txn_limbo.h 1 addition, 0 deletionssrc/box/txn_limbo.h
- test/replication-luatest/gh_9480_dont_rollback_on_quorum_wait_cancel_test.lua 46 additions, 0 deletions...test/gh_9480_dont_rollback_on_quorum_wait_cancel_test.lua
Loading
Please register or sign in to comment