-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crud: add storage-side API to wait for bootstrap
This patch add a storage handle to wait till module is bootstrapped. The handle is based on existing `storage_info` check. The handle is for using on storages only: it makes no sense to call in on the router. The current standard pattern is as follows: `crud.init_storage()` is called after `box.cfg` on both masters and replicas. In case of Tarantool 1.x and 2.x rw-instances, `crud.init_storage{wait_until_ready = true}` doesn't introduce anything new. In case of Tarantool 1.x and 2.x ro-instances, it helps to wait until persistent part of bootstrap (functions and grants) are replicated. The main motivation behind this handle is the support of asynchronous start that will be introduced in next commits. The asynchronous start is required to properly work with Tarantool 3 instances: all Tarantool 3.x instances start in ro mode. This patch doesn't change existing behavior for Cartridge roles and `crud.init_storage()` calls. Part of #412 Part of #415
- Loading branch information
1 parent
ce0cfc6
commit 9d69b86
Showing
8 changed files
with
106 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters