relay: fix unterminated final_join thread
Currently if tarantool exits during relay's final join stage, corresponding thread isn't terminated. This causes the flakiness of the replicaset_ro_mostly.test.lua. Let's reuse the same relay, in which subscribe cord is running, for the final join stage. This way the cord will be cancelled during replication_free(). Closes #8082 NO_DOC=not user-visible NO_TEST=fix flaky test NO_CHANGELOG=not user-visible Co-authored-by:Sergey Petrenko <sergepetrenko@tarantool.org> (cherry picked from commit 70a68836)
Showing
- src/box/box.cc 10 additions, 2 deletionssrc/box/box.cc
- src/box/relay.cc 15 additions, 8 deletionssrc/box/relay.cc
- src/box/relay.h 1 addition, 1 deletionsrc/box/relay.h
- test/replication/anon_register_gap.result 2 additions, 2 deletionstest/replication/anon_register_gap.result
- test/replication/anon_register_gap.test.lua 1 addition, 1 deletiontest/replication/anon_register_gap.test.lua
Loading
Please register or sign in to comment