Skip to content

Down-peer-region can't recover when enable placement-rule policy #7808

@Smityz

Description

@Smityz

Bug Report

What version of TiKV are you using?

v6.5.3

Steps to reproduce

  1. set placement-rule:
[
  {
    "group_id": "pd",
    "id": "1",
    "start_key": "",
    "end_key": "",
    "role": "voter",
    "is_witness": false,
    "count": 2,
    "label_constraints": [
      {
        "key": "disk_type",
        "op": "in",
        "values": [
          "ssd"
        ]
      }
    ],
    "location_labels": [
      "host"
    ],
    "isolation_level": "host",
    "create_timestamp": 1706696121
  },
  {
    "group_id": "pd",
    "id": "2",
    "start_key": "",
    "end_key": "",
    "role": "follower",
    "is_witness": false,
    "count": 1,
    "label_constraints": [
      {
        "key": "disk_type",
        "op": "in",
        "values": [
          "mix"
        ]
      }
    ],
    "location_labels": [
      "host"
    ],
    "isolation_level": "host",
    "create_timestamp": 1706696121
  }
]
  1. Start 8 tikv nodes, where 3 nodes are labeled disk_type=mix, and the other 5 nodes are labeled disk_type=ssd. Then load data and observe that there is no leader on the mix node, which is expected.
    image
  2. force scale-in one mix node, find there are lots of down-peer not recover
    image
  3. disable placement-rule, then down-peer starts to recover

Is this caused by my wrong placement policy or a bug of placement-rule?

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.severity/moderatetype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions