From 83baac3d1158dbf854e60b0b2c9685cf8af8f03d Mon Sep 17 00:00:00 2001 From: Byron Seto Date: Wed, 20 Aug 2025 15:45:29 -0600 Subject: [PATCH] failover command previous gave EOF --- cmd/client/command/failover.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/client/command/failover.go b/cmd/client/command/failover.go index ba869c56..2949a80b 100644 --- a/cmd/client/command/failover.go +++ b/cmd/client/command/failover.go @@ -84,6 +84,9 @@ func failoverShard(client *client, options *FailoverOptions, shardIndex int) err SetPathParam("namespace", options.namespace). SetPathParam("cluster", options.cluster). SetPathParam("shard", strconv.Itoa(shardIndex)). + SetBody(map[string]interface{}{ + "preferred_node_id": options.preferred, + }). Post("/namespaces/{namespace}/clusters/{cluster}/shards/{shard}/failover") if err != nil { return err