-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(inc-602): make migration connection checks readiness-state aware (#…
…5414) In INC-602, we ran into an issue where we had to remove a bunch of connection checks because one cluster was down and that ended up blocking deploys. This happened because the functions ```python check_clickhouse_connections() check_for_inactive_replicas() ``` both checked ALL clusters, regardless of readiness state. Even though we downgraded the migrationgroups and the storage, the checks would still fail. ### What this PR does `check_clickhouse_connections` now has a mandatory `clusters` argument to specify which clusters to check. Before it simply assumed all clusters. `check_for_inactive_replicas` now has a mandatory `storage_keys` argument to specify which storages to check. Before it simply assumed all storages. In the CLI and admin commands, the appropriate mandatory arguments are filtered by readiness states.
- Loading branch information
Showing
8 changed files
with
253 additions
and
34 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
Oops, something went wrong.