Introduce replication_connect_timeout configuration option
Currently, the max time box.cfg() may wait for connection to replicas to be established is hardcoded to box.cfg.replication_timeout times 4. As a result, users can't revert to pre replication_connect_quorum behavior, when box.cfg() blocks until it connects to all replicas. To fix that, let's introduce a new configuration option, replication_connect_timeout, which determines the replication configuration timeout. By default the option is set to 4 seconds. Closes #3151
Showing
- src/box/box.cc 21 additions, 2 deletionssrc/box/box.cc
- src/box/lua/load_cfg.lua 2 additions, 0 deletionssrc/box/lua/load_cfg.lua
- src/box/replication.cc 1 addition, 0 deletionssrc/box/replication.cc
- src/box/replication.h 8 additions, 10 deletionssrc/box/replication.h
- test/app-tap/init_script.result 23 additions, 22 deletionstest/app-tap/init_script.result
- test/box-tap/cfg.test.lua 6 additions, 1 deletiontest/box-tap/cfg.test.lua
- test/box/admin.result 2 additions, 0 deletionstest/box/admin.result
- test/box/cfg.result 4 additions, 0 deletionstest/box/cfg.result
- test/replication/quorum.lua 1 addition, 0 deletionstest/replication/quorum.lua
Loading
Please register or sign in to comment