Skip to content

Commit

Permalink
replicaset: use vshard bootstrap timeout as bootstrap timeout
Browse files Browse the repository at this point in the history
The `--timeout` flag for `tt vshard bootstrap` is now passed as
`vshard.router.bootstrap({timeout=...})`. It allows to increase
the real bootstrap process timeout.

Part of tarantool/tt-ee#232
  • Loading branch information
oleg-jukovec committed Oct 9, 2024
1 parent 88477a6 commit 333e7e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `tt log -f` crash on removing log directory.
- `tt connect` crash due to an empty response.
- `tt start` error on start Tarantool 3 with encrypted etcd.
- `tt replicaset vshard bootstrap` unable to bootstrap large clusters due to
a timeout.

### Changed

Expand Down
2 changes: 1 addition & 1 deletion cli/replicaset/lua/cconfig/bootstrap_vshard_body.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local deadline = fiber.time() + timeout
local ok, err

while fiber.time() < deadline do
ok, err = vshard.router.bootstrap()
ok, err = vshard.router.bootstrap({timeout = timeout})
if ok then
break
end
Expand Down

0 comments on commit 333e7e8

Please sign in to comment.