-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GC goes to replicas to check if a SENT bucket can be deleted. But it can happen that this call via netbox was faster than the replication. Some replicas still can have the bucket SENDING. So, GC tries to sync with replicas before checking the state of buckets. However, wait_lsn function, which is used in GC and vshard.storage.sync() tried to sync with all replicas in the current replicaset, without considering vshard config. In case some CDC is connected as non-anonymous replica, GC process failed. Let's make wait_lsn function consider vshard config. It must sync only with instances, which were explicitly passed to the config and which we know to be vshard storages. However, it's not always possible to figure out from the box.info.replication, whether the instance is vshard storage. This happens, e.g. when named identification is used, but names have not been set yet and UUID have not been passed to configuration. In such case we fallback to the old behavior and anyway check the downstream of such replica, even if we're not sure, that instance is in our configuration. Closes #490 NO_DOC=bugfix
- Loading branch information
1 parent
c8f56cc
commit bf9e6a9
Showing
2 changed files
with
90 additions
and
0 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