replication: disconnect applier on timeout
In replication schema if one of the instances was powered off, it isn't detected by others and the connection hangs. Alive machines show 'follow' state. Add timeout to solve this issue. It's safe since applier and relay both send messages every replication_timeout so we can assume that if we read nothing we have problem with connection. Use replication_disconnect_timeout which is replication_timeout * 4 as for now. The test fixed and comments improved by @locker. Closes #3025
Showing
- src/box/applier.cc 12 additions, 1 deletionsrc/box/applier.cc
- test/replication/errinj.result 73 additions, 2 deletionstest/replication/errinj.result
- test/replication/errinj.test.lua 33 additions, 1 deletiontest/replication/errinj.test.lua
- test/replication/replica_ack.lua 2 additions, 1 deletiontest/replication/replica_ack.lua
- test/replication/replica_timeout.lua 12 additions, 0 deletionstest/replication/replica_timeout.lua
test/replication/replica_timeout.lua
0 → 100644
Please register or sign in to comment