Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Operator may stop at the step of leave-joint-state #5788

Closed
HunDunDM opened this issue Dec 15, 2022 · 0 comments · Fixed by #5789
Closed

The Operator may stop at the step of leave-joint-state #5788

HunDunDM opened this issue Dec 15, 2022 · 0 comments · Fixed by #5789
Labels

Comments

@HunDunDM
Copy link
Member

HunDunDM commented Dec 15, 2022

Bug Report

What did you do?

  • Start a cluster with 4 tikv
  • Kill tikv-2, and wait for it to become Down

What did you expect to see?

replace-down-peer will be done soon.

What did you see instead?

Some Operators stay at the leave-joint-state step until timeout.

What version of PD are you using (pd-server -V)?

v6.4.0

Note

Region

» region 10
{
  "id": 10,
  "start_key": "748000FFFFFFFFFFFFFC00000000000000F8",
  "end_key": "748000FFFFFFFFFFFFFD00000000000000F8",
  "epoch": {
    "conf_ver": 10,
    "version": 4
  },
  "peers": [
    {
      "id": 11,
      "store_id": 1,
      "role_name": "Voter"
    },
    {
      "id": 18,
      "store_id": 4,
      "role": 1,
      "role_name": "Learner",
      "is_learner": true
    },
    {
      "id": 23,
      "store_id": 5,
      "role_name": "Voter"
    },
    {
      "id": 204,
      "store_id": 6,
      "role_name": "Voter"
    }
  ],
  "leader": {
    "id": 11,
    "store_id": 1,
    "role_name": "Voter"
  },
  "down_peers": [
    {
      "down_seconds": 609,
      "peer": {
        "id": 18,
        "store_id": 4,
        "role": 1,
        "role_name": "Learner",
        "is_learner": true
      }
    }
  ],
  "pending_peers": [
    {
      "id": 18,
      "store_id": 4,
      "role": 1,
      "role_name": "Learner",
      "is_learner": true
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 1,
  "approximate_keys": 0
}

log

[2022/12/15 18:26:28.439 +08:00] [INFO] [operator_controller.go:651] ["send schedule command"] [region-id=10] [step="leave joint state, promote learner peer 204 on store 6 to voter, demote voter peer 18 on store 4 to learner"] [source="active push"]
ti-chi-bot added a commit that referenced this issue Dec 19, 2022
… leave-joint-state (#5789)

ref #5568, close #5788

Signed-off-by: HunDunDM <hundundm@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ti-chi-bot added a commit that referenced this issue Feb 6, 2023
… leave-joint-state (#5789) (#5795)

ref #5568, close #5788, ref #5789

Signed-off-by: HunDunDM <hundundm@gmail.com>

Co-authored-by: HunDunDM <hundundm@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant