Skip to content

Upgrade process use the wrong URL #1452

@rleungx

Description

@rleungx

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    Upgrade cluster

  2. What did you expect to see?
    Successfully

  3. 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.

  1. What version of TiUP are you using (tiup --version)?
    master

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugCategorizes issue as related to a bug.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions