From 6222fa7848fe3c67fc81a18c532ba600a9f21ee0 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Tue, 3 Sep 2024 11:44:28 +0530 Subject: [PATCH 1/3] spelling --- deployment/strong_consistency.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/strong_consistency.go b/deployment/strong_consistency.go index 52a7570..ebe7d02 100644 --- a/deployment/strong_consistency.go +++ b/deployment/strong_consistency.go @@ -249,7 +249,7 @@ func recluster(clHost *host) error { clHost.log.V(1).Info("Run info command", "cmd", cmd, "output", cmdOutput) - if !strings.EqualFold(cmdOutput, "ok") && !strings.EqualFold(cmdOutput, "ignored-by-non-principal") { + if !strings.EqualFold(cmdOutput, "ok") && !strings.EqualFold(cmdOutput, "ignored-by-non-pricipal") { return fmt.Errorf("failed to run `%s` for cluster, %v", cmd, cmdOutput) } From 6986210f911684ef9c1b6bb8ffd07da8bfc54e0d Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Tue, 3 Sep 2024 19:13:11 +0530 Subject: [PATCH 2/3] cluster-stable --- deployment/cluster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/cluster.go b/deployment/cluster.go index 5cf2ec3..f2053dd 100644 --- a/deployment/cluster.go +++ b/deployment/cluster.go @@ -501,7 +501,7 @@ func (c *cluster) infoClusterStable(hostIDs []string) error { lg.V(1).Info("Executing cluster-stable command") cmd := fmt.Sprintf( - "cluster-stable:size=%d;ignore-migrations=no", len(hostIDs), + "cluster-stable:size=%d;ignore-migrations=false", len(hostIDs), ) infoResults, err := c.infoOnHosts(hostIDs, cmd) @@ -562,7 +562,7 @@ func (c *cluster) infoClusterStablePerNamespace(hostIDs, removedNamespaces []str for ns := range effectiveNamespaces.Iter() { cmd := fmt.Sprintf( - "cluster-stable:size=%d;ignore-migrations=no;namespace=%s", len(hostIDs), ns, + "cluster-stable:size=%d;ignore-migrations=false;namespace=%s", len(hostIDs), ns, ) infoResults, err := c.infoOnHosts(hostIDs, cmd) From 532f7cf2e66bb25ff13ef08b57560f3313cd26f0 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Thu, 5 Sep 2024 13:13:52 +0530 Subject: [PATCH 3/3] principal spell revert --- deployment/strong_consistency.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/strong_consistency.go b/deployment/strong_consistency.go index ebe7d02..52a7570 100644 --- a/deployment/strong_consistency.go +++ b/deployment/strong_consistency.go @@ -249,7 +249,7 @@ func recluster(clHost *host) error { clHost.log.V(1).Info("Run info command", "cmd", cmd, "output", cmdOutput) - if !strings.EqualFold(cmdOutput, "ok") && !strings.EqualFold(cmdOutput, "ignored-by-non-pricipal") { + if !strings.EqualFold(cmdOutput, "ok") && !strings.EqualFold(cmdOutput, "ignored-by-non-principal") { return fmt.Errorf("failed to run `%s` for cluster, %v", cmd, cmdOutput) }