apache / kvrocks-controller

Apache Kvrocks Controller is a cluster management tool for Apache Kvrocks.
https://kvrocks.apache.org/
Apache License 2.0
82 stars 41 forks source link

error returned if set preferred_node_id param, report {"error":{"message":"EOF"},"data":null} #195

Closed greatsharp closed 2 months ago

greatsharp commented 2 months ago

https://github.com/apache/kvrocks-controller/blob/8fc7804c0d624ac4d0434f93622148dd2d297d73/server/api/shard.go#L131C4-L134C5

suggest change c.BindJson to json.Unmarshal

git-hulk commented 2 months ago

@greatsharp Makes sense, would you like to submit a PR to resolve this?

greatsharp commented 2 months ago

@greatsharp Makes sense, would you like to submit a PR to resolve this?

can not submit any code to github due to some reason :-(