vinyl: ignore quota timeout during bootstrap from master
During initial join, a replica receives all data accumulated on the master for its whole lifetime, which may be quota a lot. If the network connection is fast enough, the replica might fail to keep up with dumps, in which case replication fails with ER_VY_QUOTA_TIMEOUT. To avoid that, let's ignore quota timeout until bootstrap is complete. Note, replication may still fail during the 'subscribe' stage for the same reason, but it's unlikely, because the rate at which the master sends data is limited by the number of requests served by the master per a unit of time, and it should become nearly impossible once throttling is introduced (See #1862). Closes #2873
Showing
- src/box/vinyl.c 9 additions, 2 deletionssrc/box/vinyl.c
- test/vinyl/join_quota.lua 1 addition, 0 deletionstest/vinyl/join_quota.lua
- test/vinyl/replica_quota.result 7 additions, 0 deletionstest/vinyl/replica_quota.result
- test/vinyl/replica_quota.test.lua 7 additions, 0 deletionstest/vinyl/replica_quota.test.lua
Loading
Please register or sign in to comment