This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks-controller.git
The following commit(s) were added to refs/heads/unstable by this push:
new 751cf95 failover command previously gave EOF (#344)
751cf95 is described below
commit 751cf95d04600490bb00055f54eda7fc8b895bc2
Author: Byron Seto <[email protected]>
AuthorDate: Wed Aug 20 20:14:24 2025 -0600
failover command previously gave EOF (#344)
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 ba869c5..2949a80 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