Bug Report
Please answer these questions before submitting your issue. Thanks!
-
What did you do?
Upgrade cluster
-
What did you expect to see?
Successfully
-
What did you see instead?
Upgrading component tikv
failed increasing schedule limit: no endpoint available, the last err was: error requesting http://10.4.101.105:2379/pd/api/v1/config/replication-mode, response: {
"code": "input",
"msg": "unexpected end of JSON input",
"data":
{ "Offset": 0 }
See
|
if err := pc.SetReplicationConfig("leader-schedule-limit", newLimit); err != nil { |
|
return pc.updateConfig(pdReplicationModeURI, bytes.NewBuffer(body)) |
For xxx-schedule-limit, we should use pd/api/v1/config or pd/api/v1/config/schedule instead of pd/api/v1/config/replication-mode. replication-mode hasn't GA for now.
- What version of TiUP are you using (
tiup --version)?
master
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you do?
Upgrade cluster
What did you expect to see?
Successfully
What did you see instead?
See
tiup/pkg/cluster/operation/upgrade.go
Line 223 in 49ee71a
tiup/pkg/cluster/api/pdapi.go
Line 771 in 49ee71a
For xxx-schedule-limit, we should use
pd/api/v1/configorpd/api/v1/config/scheduleinstead ofpd/api/v1/config/replication-mode.replication-modehasn't GA for now.tiup --version)?master