fix: Fix cluster_mgr.py (#3730)

We updated the reply of `SLOT-MIGRATION-STATUS`, so `cluster_mgr.py`
needs to be adjusted as well.
This commit is contained in:
Shahar Mike 2024-09-18 11:44:15 +03:00 committed by GitHub
parent a115bc2b9f
commit 1c6be62a0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -409,7 +409,8 @@ def migrate(args):
sync_status = []
while True:
sync_status = send_command(target_node, ["DFLYCLUSTER", "SLOT-MIGRATION-STATUS"])
if sync_status == "NO_STATE":
if len(sync_status) == 0:
# Migration didn't start yet
continue
if len(sync_status) != 1:
die_with_err(f"Unexpected number of migrations {len(sync_status)}: {sync_status}")