bseto opened a new pull request, #344:
URL: https://github.com/apache/kvrocks-controller/pull/344

   ```sh
   ./_build/kvctl failover shard 1 -n test-ns -c test-cluster0 --preferred 
amzFeDtPXNLPwWHIeG7Ip50cDUJT0bH1O0uYwjm7
   error: EOF
   ```
   
   after fix
   ```sh
   ./_build/kvctl failover shard 1 -n test-ns -c test-cluster0 --preferred 
amzFeDtPXNLPwWHIeG7Ip50cDUJT0bH1O0uYwjm7
   failover shard 1 successfully, new master id: 
amzFeDtPXNLPwWHIeG7Ip50cDUJT0bH1O0uYwjm7.
   ```
   
   ShouldBindJSON would give an error `EOF` because `preferred_node_id` was not 
in the body
   
https://github.com/apache/kvrocks-controller/blob/unstable/server/api/shard.go#L125


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to