请问强制下线StoreId指令参数是什么了?

pd leader 的日志里面有 “bury store failed” 或者 “store may not turn into Tombstone” 吗?

怎么看 lead的log ?

可以直接通过 dashboard 的日志搜索功能,选中 PD 实例搜索一下关键字

跟搜索那个本地log文件一样吧.


只有这几条,都跟那个 70059 的store无关好像
bury 搜不到东西

然后实际上是出现了挺多报错的信息的.已经影响使用了.

麻烦使用 pd-ctl 执行下 region store 70059

很长,我复制一部分

{
  "id": 3661168,
  "start_key": "7480000000000007FFA75F728000000006FFE7542B0000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFE8FE880000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661170,
      "store_id": 70002
    },
    {
      "id": 3661171,
      "store_id": 70059
    },
    {
      "id": 3661172,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661173,
  "start_key": "7480000000000007FFA75F728000000006FFE8FE880000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFEAAF8B0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661175,
      "store_id": 70002
    },
    {
      "id": 3661176,
      "store_id": 70059
    },
    {
      "id": 3661177,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661178,
  "start_key": "7480000000000007FFA75F728000000006FFEAAF8B0000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFEBEAE30000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661180,
      "store_id": 70002
    },
    {
      "id": 3661181,
      "store_id": 70059
    },
    {
      "id": 3661182,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661183,
  "start_key": "7480000000000007FFA75F728000000006FFEBEAE30000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFECF8A90000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661185,
      "store_id": 70002
    },
    {
      "id": 3661186,
      "store_id": 70059
    },
    {
      "id": 3661187,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661188,
  "start_key": "7480000000000007FFA75F728000000006FFECF8A90000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFEE026B0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661190,
      "store_id": 70002
    },
    {
      "id": 3661191,
      "store_id": 70059
    },
    {
      "id": 3661192,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661193,
  "start_key": "7480000000000007FFA75F728000000006FFEE026B0000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFEF0BB40000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661195,
      "store_id": 70002
    },
    {
      "id": 3661196,
      "store_id": 70059
    },
    {
      "id": 3661197,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661198,
  "start_key": "7480000000000007FFA75F728000000006FFEF0BB40000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFF16D360000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661200,
      "store_id": 70002
    },
    {
      "id": 3661201,
      "store_id": 70059
    },
    {
      "id": 3661202,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661203,
  "start_key": "7480000000000007FFA75F728000000006FFF16D360000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFF29E4C0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661205,
      "store_id": 70002
    },
    {
      "id": 3661206,
      "store_id": 70059
    },
    {
      "id": 3661207,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661208,
  "start_key": "7480000000000007FFA75F728000000006FFF29E4C0000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFF3D2E40000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661210,
      "store_id": 70002
    },
    {
      "id": 3661211,
      "store_id": 70059
    },
    {
      "id": 3661212,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661213,
  "start_key": "7480000000000007FFA75F728000000006FFF3D2E40000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFF60E380000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661215,
      "store_id": 70002
    },
    {
      "id": 3661216,
      "store_id": 70059
    },
    {
      "id": 3661217,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661218,
  "start_key": "7480000000000007FFA75F728000000006FFF60E380000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFF896A10000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661220,
      "store_id": 70002
    },
    {
      "id": 3661221,
      "store_id": 70059
    },
    {
      "id": 3661222,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661223,
  "start_key": "7480000000000007FFA75F728000000006FFF896A10000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFF9CCFF0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661225,
      "store_id": 70002
    },
    {
      "id": 3661226,
      "store_id": 70059
    },
    {
      "id": 3661227,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661228,
  "start_key": "7480000000000007FFA75F728000000006FFF9CCFF0000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFFAF34D0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661230,
      "store_id": 70002
    },
    {
      "id": 3661231,
      "store_id": 70059
    },
    {
      "id": 3661232,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661238,
  "start_key": "7480000000000007FFA75F728000000006FFFC45460000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFFDC3DF0000000000FA",
  "epoch": {
    "conf_ver": 9,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661240,
      "store_id": 70002
    },
    {
      "id": 3661241,
      "store_id": 70059
    },
    {
      "id": 3691417,
      "store_id": 3691328,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661243,
  "start_key": "7480000000000007FFA75F728000000006FFFDC3DF0000000000FA",
  "end_key": "7480000000000007FFA75F728000000006FFFFCC310000000000FA",
  "epoch": {
    "conf_ver": 9,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661245,
      "store_id": 70002
    },
    {
      "id": 3661246,
      "store_id": 70059
    },
    {
      "id": 3691418,
      "store_id": 3691328,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661248,
  "start_key": "7480000000000007FFA75F728000000006FFFFCC310000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF00D93A0000000000FA",
  "epoch": {
    "conf_ver": 9,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661250,
      "store_id": 70002
    },
    {
      "id": 3661251,
      "store_id": 70059
    },
    {
      "id": 3691424,
      "store_id": 3691328,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661263,
  "start_key": "7480000000000007FFA75F728000000007FF046C750000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF07C1140000000000FA",
  "epoch": {
    "conf_ver": 9,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661265,
      "store_id": 70002
    },
    {
      "id": 3661266,
      "store_id": 70059
    },
    {
      "id": 3691422,
      "store_id": 3691328,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661268,
  "start_key": "7480000000000007FFA75F728000000007FF07C1140000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF0996E10000000000FA",
  "epoch": {
    "conf_ver": 9,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661270,
      "store_id": 70002
    },
    {
      "id": 3661271,
      "store_id": 70059
    },
    {
      "id": 3691421,
      "store_id": 3691328,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661273,
  "start_key": "7480000000000007FFA75F728000000007FF0996E10000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF0B662B0000000000FA",
  "epoch": {
    "conf_ver": 8,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661275,
      "store_id": 70002
    },
    {
      "id": 3661276,
      "store_id": 70059
    },
    {
      "id": 3661277,
      "store_id": 3651246,
      "role": 1
    },
    {
      "id": 3691433,
      "store_id": 3691328,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661278,
  "start_key": "7480000000000007FFA75F728000000007FF0B662B0000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF0C9D6C0000000000FA",
  "epoch": {
    "conf_ver": 8,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661280,
      "store_id": 70002
    },
    {
      "id": 3661281,
      "store_id": 70059
    },
    {
      "id": 3661282,
      "store_id": 3651246,
      "role": 1
    },
    {
      "id": 3691434,
      "store_id": 3691328,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661283,
  "start_key": "7480000000000007FFA75F728000000007FF0C9D6C0000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF0D0E180000000000FA",
  "epoch": {
    "conf_ver": 8,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661285,
      "store_id": 70002
    },
    {
      "id": 3661286,
      "store_id": 70059
    },
    {
      "id": 3661287,
      "store_id": 3651246,
      "role": 1
    },
    {
      "id": 3691435,
      "store_id": 3691328,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661288,
  "start_key": "7480000000000007FFA75F728000000007FF0D0E180000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF0DC7F30000000000FA",
  "epoch": {
    "conf_ver": 9,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661290,
      "store_id": 70002
    },
    {
      "id": 3661291,
      "store_id": 70059
    },
    {
      "id": 3691426,
      "store_id": 3691328,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661293,
  "start_key": "7480000000000007FFA75F728000000007FF0DC7F30000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF0EE13F0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661295,
      "store_id": 70002
    },
    {
      "id": 3661296,
      "store_id": 70059
    },
    {
      "id": 3661297,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661298,
  "start_key": "7480000000000007FFA75F728000000007FF0EE13F0000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF102A5F0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661300,
      "store_id": 70002
    },
    {
      "id": 3661301,
      "store_id": 70059
    },
    {
      "id": 3661302,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661303,
  "start_key": "7480000000000007FFA75F728000000007FF102A5F0000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF10E4360000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661305,
      "store_id": 70002
    },
    {
      "id": 3661306,
      "store_id": 70059
    },
    {
      "id": 3661307,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661308,
  "start_key": "7480000000000007FFA75F728000000007FF10E4360000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF12A27B0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661310,
      "store_id": 70002
    },
    {
      "id": 3661311,
      "store_id": 70059
    },
    {
      "id": 3661312,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661318,
  "start_key": "7480000000000007FFA75F728000000007FF1412700000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF14D10D0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661320,
      "store_id": 70002
    },
    {
      "id": 3661321,
      "store_id": 70059
    },
    {
      "id": 3661322,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661323,
  "start_key": "7480000000000007FFA75F728000000007FF14D10D0000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF1660D70000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661325,
      "store_id": 70002
    },
    {
      "id": 3661326,
      "store_id": 70059
    },
    {
      "id": 3661327,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661328,
  "start_key": "7480000000000007FFA75F728000000007FF1660D70000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF16E2290000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661330,
      "store_id": 70002
    },
    {
      "id": 3661331,
      "store_id": 70059
    },
    {
      "id": 3661332,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661333,
  "start_key": "7480000000000007FFA75F728000000007FF16E2290000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF1771B40000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661335,
      "store_id": 70002
    },
    {
      "id": 3661336,
      "store_id": 70059
    },
    {
      "id": 3661337,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661343,
  "start_key": "7480000000000007FFA75F728000000007FF17EC640000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF185C8C0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661345,
      "store_id": 70002
    },
    {
      "id": 3661346,
      "store_id": 70059
    },
    {
      "id": 3661347,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661348,
  "start_key": "7480000000000007FFA75F728000000007FF185C8C0000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF189B220000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661350,
      "store_id": 70002
    },
    {
      "id": 3661351,
      "store_id": 70059
    },
    {
      "id": 3661352,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661353,
  "start_key": "7480000000000007FFA75F728000000007FF189B220000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF18EDBF0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661355,
      "store_id": 70002
    },
    {
      "id": 3661356,
      "store_id": 70059
    },
    {
      "id": 3661357,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661368,
  "start_key": "7480000000000007FFA75F728000000007FF198B470000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF19C7AB0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661370,
      "store_id": 70002
    },
    {
      "id": 3661371,
      "store_id": 70059
    },
    {
      "id": 3661372,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661373,
  "start_key": "7480000000000007FFA75F728000000007FF19C7AB0000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF19F77C0000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661375,
      "store_id": 70002
    },
    {
      "id": 3661376,
      "store_id": 70059
    },
    {
      "id": 3661377,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661378,
  "start_key": "7480000000000007FFA75F728000000007FF19F77C0000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF1A24970000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661380,
      "store_id": 70002
    },
    {
      "id": 3661381,
      "store_id": 70059
    },
    {
      "id": 3661382,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661383,
  "start_key": "7480000000000007FFA75F728000000007FF1A24970000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF1A52940000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1094
  },
  "peers": [
    {
      "id": 3661385,
      "store_id": 70002
    },
    {
      "id": 3661386,
      "store_id": 70059
    },
    {
      "id": 3661387,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3686936,
  "start_key": "7480000000000007FFA75F728000000007FF1A52940000000000FA",
  "end_key": "7480000000000007FFA75F728000000007FF1BD7C90000000000FA",
  "epoch": {
    "conf_ver": 7,
    "version": 1095
  },
  "peers": [
    {
      "id": 3686937,
      "store_id": 70002
    },
    {
      "id": 3686938,
      "store_id": 70059
    },
    {
      "id": 3686939,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
},
{
  "id": 3661388,
  "start_key": "7480000000000007FFA75F728000000007FF1BD7C90000000000FA",
  "end_key": "7480000000000007FFA75F72FFFFFFFFFFFFFFFFFF0000000000FB",
  "epoch": {
    "conf_ver": 7,
    "version": 1095
  },
  "peers": [
    {
      "id": 3661390,
      "store_id": 70002
    },
    {
      "id": 3661391,
      "store_id": 70059
    },
    {
      "id": 3661392,
      "store_id": 3651246,
      "role": 1
    }
  ],
  "written_bytes": 0,
  "read_bytes": 0,
  "written_keys": 0,
  "read_keys": 0,
  "approximate_size": 0,
  "approximate_keys": 0
}

]
}

70059 和 70002 这两个 store 的数据是已经删除了吗?如果没有的话可以加回来吗?看起来可能是之前没有下线成功就移除了。之后是不是有重启过 pd?

我上面说了.就是停留在 OffineLine 好多天,没办法了.直接再执行了 --force
集群都重启过多次了
现在怎么加回来?

按照store 显示的结果,不是region已经都为 0 了吗?为什么说还有region还在这个store上呢

region --jq=’.regions[] | {id: .id, peer_stores: [.peers[].store_id]| select(. | contains([70002,70059]))}’
region --jq=’.regions[] | {id: .id, peers: [.peers[]] | map(select(.is_learner != true ))} | {id: .id, peers: [.peers[].store_id] | select(. | contains([70002,70059]) and length==2)}’

麻烦帮忙查看下这个结果,多谢。

https://docs.pingcap.com/zh/tidb/stable/pd-control#region-region_id---jqquery-string

» region --jq=’.regions[] | {id: .id, peer_stores: [.peers[].store_id]| select(. | contains([70002,70059]))}’
{“id”:3660491,“peer_stores”:[70002,70059]}
{“id”:3660086,“peer_stores”:[70002,70059]}
{“id”:3655085,“peer_stores”:[70002,70059]}
{“id”:3655678,“peer_stores”:[70002,70059]}
{“id”:3656098,“peer_stores”:[70002,70059,3651246]}
{“id”:3655672,“peer_stores”:[70002,70059]}
{“id”:3652671,“peer_stores”:[70002,70059,3651246]}
{“id”:3661323,“peer_stores”:[70002,70059,3651246]}
{“id”:3686879,“peer_stores”:[70002,70059]}
{“id”:3661303,“peer_stores”:[70002,70059,3651246]}
{“id”:3655065,“peer_stores”:[70002,70059]}
{“id”:3687095,“peer_stores”:[70002,70059]}
{“id”:3655525,“peer_stores”:[70002,70059]}
{“id”:3660224,“peer_stores”:[70002,70059]}
{“id”:3656074,“peer_stores”:[70002,70059,3651246]}
{“id”:3656026,“peer_stores”:[70002,70059,3651246]}
{“id”:3652875,“peer_stores”:[70002,70059,3651246]}
{“id”:3652735,“peer_stores”:[70002,70059,3651246]}
{“id”:3652467,“peer_stores”:[70002,70059]}
{“id”:3656202,“peer_stores”:[70002,70059,3651246]}
{“id”:3659479,“peer_stores”:[70002,70059]}
{“id”:3660639,“peer_stores”:[70002,70059]}
{“id”:3660689,“peer_stores”:[70002,70059]}
{“id”:3659343,“peer_stores”:[70002,70059]}
{“id”:3660941,“peer_stores”:[70002,70059,3651246]}
{“id”:3661368,“peer_stores”:[70002,70059,3651246]}
{“id”:3656190,“peer_stores”:[70002,70059,3651246]}
{“id”:3656250,“peer_stores”:[70002,70059,3651246]}
{“id”:3652963,“peer_stores”:[70002,70059,3651246]}
{“id”:3659631,“peer_stores”:[70002,70059]}
{“id”:3652919,“peer_stores”:[70002,70059,3651246]}
{“id”:3660434,“peer_stores”:[70002,70059]}
{“id”:3655101,“peer_stores”:[70002,70059]}
{“id”:3652459,“peer_stores”:[70002,70059]}
{“id”:3659990,“peer_stores”:[70002,70059]}
{“id”:3661268,“peer_stores”:[70002,70059,3691328]}
{“id”:3659999,“peer_stores”:[70002,70059]}
{“id”:3655477,“peer_stores”:[70002,70059]}
{“id”:3652951,“peer_stores”:[70002,70059,3651246]}
{“id”:3659267,“peer_stores”:[70002,70059]}
{“id”:3659375,“peer_stores”:[70002,70059]}
{“id”:3686918,“peer_stores”:[70002,70059]}
{“id”:3660470,“peer_stores”:[70002,70059]}
{“id”:3661378,“peer_stores”:[70002,70059,3651246]}
{“id”:3652491,“peer_stores”:[70002,70059]}
{“id”:3661068,“peer_stores”:[70002,70059,3651246]}
{“id”:3660509,“peer_stores”:[70002,70059]}
{“id”:3660680,“peer_stores”:[70002,70059]}
{“id”:3660380,“peer_stores”:[70002,70059]}
{“id”:3655630,“peer_stores”:[70002,70059]}
{“id”:3660332,“peer_stores”:[70002,70059]}
{“id”:3659531,“peer_stores”:[70002,70059]}
{“id”:3655377,“peer_stores”:[70002,70059]}
{“id”:3656066,“peer_stores”:[70002,70059,3651246]}
{“id”:3659215,“peer_stores”:[70002,70059]}
{“id”:3661038,“peer_stores”:[70002,70059,3651246]}
{“id”:3655509,“peer_stores”:[70002,70059]}
{“id”:3661288,“peer_stores”:[70002,70059,3691328]}
{“id”:3652655,“peer_stores”:[70002,70059,3651246]}
{“id”:3655582,“peer_stores”:[70002,70059]}
{“id”:3659864,“peer_stores”:[70002,70059]}
{“id”:3686612,“peer_stores”:[70002,70059,3651246]}
{“id”:3660506,“peer_stores”:[70002,70059]}
{“id”:3655097,“peer_stores”:[70002,70059]}
{“id”:3660083,“peer_stores”:[70002,70059]}
{“id”:3660077,“peer_stores”:[70002,70059]}
{“id”:3660017,“peer_stores”:[70002,70059]}
{“id”:3652931,“peer_stores”:[70002,70059,3651246]}
{“id”:3655269,“peer_stores”:[70002,70059]}
{“id”:3659379,“peer_stores”:[70002,70059]}
{“id”:3655537,“peer_stores”:[70002,70059]}
{“id”:3656014,“peer_stores”:[70002,70059,3651246]}
{“id”:3659996,“peer_stores”:[70002,70059]}
{“id”:3655576,“peer_stores”:[70002,70059]}
{“id”:3659563,“peer_stores”:[70002,70059]}
{“id”:3652807,“peer_stores”:[70002,70059,3651246]}
{“id”:3660044,“peer_stores”:[70002,70059]}
{“id”:3660242,“peer_stores”:[70002,70059]}
{“id”:3660116,“peer_stores”:[70002,70059]}
{“id”:3655373,“peer_stores”:[70002,70059]}
{“id”:3660215,“peer_stores”:[70002,70059]}
{“id”:3660272,“peer_stores”:[70002,70059]}
{“id”:3655397,“peer_stores”:[70002,70059]}
{“id”:3659551,“peer_stores”:[70002,70059]}
{“id”:3655133,“peer_stores”:[70002,70059]}
{“id”:3660335,“peer_stores”:[70002,70059]}
{“id”:3656186,“peer_stores”:[70002,70059,3651246]}
{“id”:3659852,“peer_stores”:[70002,70059]}
{“id”:3659957,“peer_stores”:[70002,70059]}
{“id”:3660611,“peer_stores”:[70002,70059]}
{“id”:3660677,“peer_stores”:[70002,70059]}
{“id”:3660619,“peer_stores”:[70002,70059]}
{“id”:3659307,“peer_stores”:[70002,70059]}
{“id”:3655349,“peer_stores”:[70002,70059]}
{“id”:3660695,“peer_stores”:[70002,70059]}
{“id”:3652799,“peer_stores”:[70002,70059,3651246]}
{“id”:3655413,“peer_stores”:[70002,70059]}
{“id”:3655693,“peer_stores”:[70002,70059]}
{“id”:3655624,“peer_stores”:[70002,70059]}
{“id”:3660092,“peer_stores”:[70002,70059]}
{“id”:3655744,“peer_stores”:[70002,70059]}
{“id”:3659963,“peer_stores”:[70002,70059]}
{“id”:3659435,“peer_stores”:[70002,70059]}
{“id”:3661108,“peer_stores”:[70002,70059,3651246]}
{“id”:3652915,“peer_stores”:[70002,70059,3651246]}
{“id”:3659789,“peer_stores”:[70002,70059]}
{“id”:3652695,“peer_stores”:[70002,70059,3651246]}
{“id”:3655465,“peer_stores”:[70002,70059]}
{“id”:3661011,“peer_stores”:[70002,70059,3651246]}
{“id”:3655854,“peer_stores”:[70002,70059,3651246]}
{“id”:3655702,“peer_stores”:[70002,70059]}
{“id”:3660815,“peer_stores”:[70002,70059]}
{“id”:3661088,“peer_stores”:[70002,70059,3651246]}
{“id”:3660407,“peer_stores”:[70002,70059]}
{“id”:3660579,“peer_stores”:[70002,70059]}
{“id”:3661283,“peer_stores”:[70002,70059,3651246,3691328]}
{“id”:3660383,“peer_stores”:[70002,70059]}
{“id”:3659867,“peer_stores”:[70002,70059]}
{“id”:3686791,“peer_stores”:[70002,70059]}
{“id”:3660410,“peer_stores”:[70002,70059]}
{“id”:3652651,“peer_stores”:[70002,70059,3651246]}
{“id”:3661348,“peer_stores”:[70002,70059,3651246]}
{“id”:3652503,“peer_stores”:[70002,70059]}
{“id”:3659918,“peer_stores”:[70002,70059]}
{“id”:3659882,“peer_stores”:[70002,70059]}
{“id”:3660476,“peer_stores”:[70002,70059]}
{“id”:3656070,“peer_stores”:[70002,70059,3651246]}
{“id”:3659243,“peer_stores”:[70002,70059]}
{“id”:3655257,“peer_stores”:[70002,70059]}
{“id”:3655934,“peer_stores”:[70002,70059,3651246]}
{“id”:3655489,“peer_stores”:[70002,70059]}
{“id”:3660794,“peer_stores”:[70002,70059]}
{“id”:3659351,“peer_stores”:[70002,70059]}
{“id”:3655157,“peer_stores”:[70002,70059]}
{“id”:3655441,“peer_stores”:[70002,70059]}
{“id”:3661173,“peer_stores”:[70002,70059,3651246]}
{“id”:3655121,“peer_stores”:[70002,70059]}
{“id”:3660591,“peer_stores”:[70002,70059]}
{“id”:3652487,“peer_stores”:[70002,70059]}
{“id”:3661203,“peer_stores”:[70002,70059,3651246]}
{“id”:3656130,“peer_stores”:[70002,70059,3651246]}
{“id”:3660098,“peer_stores”:[70002,70059]}
{“id”:3655918,“peer_stores”:[70002,70059,3651246]}
{“id”:3655558,“peer_stores”:[70002,70059]}
{“id”:3660347,“peer_stores”:[70002,70059]}
{“id”:3655922,“peer_stores”:[70002,70059,3651246]}
{“id”:3660320,“peer_stores”:[70002,70059]}
{“id”:3660152,“peer_stores”:[70002,70059]}
{“id”:3655648,“peer_stores”:[70002,70059]}
{“id”:3656126,“peer_stores”:[70002,70059,3651246]}
{“id”:3659667,“peer_stores”:[70002,70059]}
{“id”:3659130,“peer_stores”:[70002,70059,3651246]}
{“id”:3652591,“peer_stores”:[70002,70059,3651246]}
{“id”:3652883,“peer_stores”:[70002,70059,3651246]}
{“id”:3656226,“peer_stores”:[70002,70059,3651246]}
{“id”:3660233,“peer_stores”:[70002,70059]}
{“id”:3655726,“peer_stores”:[70002,70059]}
{“id”:3659191,“peer_stores”:[70002,70059]}
{“id”:3652763,“peer_stores”:[70002,70059,3651246]}
{“id”:3655341,“peer_stores”:[70002,70059]}
{“id”:3655914,“peer_stores”:[70002,70059,3651246]}
{“id”:3660014,“peer_stores”:[70002,70059]}
{“id”:3655049,“peer_stores”:[70002,70059]}
{“id”:3660386,“peer_stores”:[70002,70059]}
{“id”:3655690,“peer_stores”:[70002,70059]}
{“id”:3659295,“peer_stores”:[70002,70059]}
{“id”:3686609,“peer_stores”:[70002,70059]}
{“id”:3660848,“peer_stores”:[70002,70059]}
{“id”:3659411,“peer_stores”:[70002,70059]}
{“id”:3660221,“peer_stores”:[70002,70059]}
{“id”:3660583,“peer_stores”:[70002,70059]}
{“id”:3686702,“peer_stores”:[70002,70059]}
{“id”:3660991,“peer_stores”:[70002,70059,3651246]}
{“id”:3660206,“peer_stores”:[70002,70059]}
{“id”:3660299,“peer_stores”:[70002,70059]}
{“id”:3655874,“peer_stores”:[70002,70059,3651246]}
{“id”:3660182,“peer_stores”:[70002,70059]}
{“id”:3655353,“peer_stores”:[70002,70059]}
{“id”:3655567,“peer_stores”:[70002,70059]}
{“id”:3655449,“peer_stores”:[70002,70059]}
{“id”:3656142,“peer_stores”:[70002,70059,3651246]}
{“id”:3655870,“peer_stores”:[70002,70059,3651246]}
{“id”:3655618,“peer_stores”:[70002,70059]}
{“id”:3659275,“peer_stores”:[70002,70059]}
{“id”:3659407,“peer_stores”:[70002,70059]}
{“id”:3655588,“peer_stores”:[70002,70059]}
{“id”:3660290,“peer_stores”:[70002,70059]}
{“id”:3652835,“peer_stores”:[70002,70059,3651246]}
{“id”:3655826,“peer_stores”:[70002,70059,3651246]}
{“id”:3659801,“peer_stores”:[70002,70059]}
{“id”:3655265,“peer_stores”:[70002,70059]}
{“id”:3660803,“peer_stores”:[70002,70059]}
{“id”:3660812,“peer_stores”:[70002,70059]}
{“id”:3659843,“peer_stores”:[70002,70059]}
{“id”:3655954,“peer_stores”:[70002,70059,3651246]}
{“id”:3660239,“peer_stores”:[70002,70059]}
{“id”:3655281,“peer_stores”:[70002,70059]}

很长,我摘取一部分出来

region --jq=’.regions[] | {id: .id, peers: [.peers[]] | map(select(.is_learner != true ))} | {id: .id, peers: [.peers[].store_id] | select(. | contains([70002,70059]) and length==2)}’

{“id”:3673943,“start_key”:“748000000000002CFF0D00000000000000F8”,“end_key”:“748000000000002CFF1000000000000000F8”,“epoch”:{“conf_ver”:23,“version”:4083},“peers”:[{“id”:7535196,“store_id”:7332002},{“id”:8321873,“store_id”:7982622},{“id”:9901614,“store_id”:9235861}],“leader”:{“id”:8321873,“store_id”:7982622},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:3663917,“start_key”:“7480000000000010FF8700000000000000F8”,“end_key”:“7480000000000010FF8A00000000000000F8”,“epoch”:{“conf_ver”:23,“version”:1623},“peers”:[{“id”:7431121,“store_id”:7332002},{“id”:8073449,“store_id”:7982622},{“id”:9437647,“store_id”:9235861}],“leader”:{“id”:9437647,“store_id”:9235861},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:3670415,“start_key”:“7480000000000022FFCB00000000000000F8”,“end_key”:“7480000000000022FFCD00000000000000F8”,“epoch”:{“conf_ver”:23,“version”:3201},“peers”:[{“id”:7719665,“store_id”:7332002},{“id”:8215344,“store_id”:7982622},{“id”:9519223,“store_id”:9235861}],“leader”:{“id”:7719665,“store_id”:7332002},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:3679975,“start_key”:“748000000000003FFF7E00000000000000F8”,“end_key”:“748000000000003FFF8000000000000000F8”,“epoch”:{“conf_ver”:23,“version”:5569},“peers”:[{“id”:7394957,“store_id”:7332002},{“id”:8070518,“store_id”:7982622},{“id”:10245554,“store_id”:9235861}],“leader”:{“id”:7394957,“store_id”:7332002},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:4718325,“start_key”:“7480000000000065FF0000000000000000F8”,“end_key”:“7480000000000065FF0300000000000000F8”,“epoch”:{“conf_ver”:23,“version”:8922},“peers”:[{“id”:7371130,“store_id”:7332002},{“id”:8091948,“store_id”:7982622},{“id”:9259591,“store_id”:9235861}],“leader”:{“id”:9259591,“store_id”:9235861},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:4720120,“start_key”:“7480000000000065FFA600000000000000F8”,“end_key”:“7480000000000065FFA900000000000000F8”,“epoch”:{“conf_ver”:23,“version”:8995},“peers”:[{“id”:7873773,“store_id”:7332002},{“id”:9043301,“store_id”:7982622},{“id”:13594601,“store_id”:9235861}],“leader”:{“id”:13594601,“store_id”:9235861},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:200}
{“id”:14144829,“start_key”:“7480000000000075FFE200000000000000F8”,“end_key”:“7480000000000075FFE500000000000000F8”,“epoch”:{“conf_ver”:23,“version”:10293},“peers”:[{“id”:14144830,“store_id”:7332002},{“id”:14144831,“store_id”:7982622},{“id”:14144832,“store_id”:9235861}],“leader”:{“id”:14144831,“store_id”:7982622},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:14149505,“start_key”:“7480000000000084FF0600000000000000F8”,“end_key”:“7480000000000084FF0900000000000000F8”,“epoch”:{“conf_ver”:23,“version”:11453},“peers”:[{“id”:14149506,“store_id”:7332002},{“id”:14149507,“store_id”:7982622},{“id”:14149508,“store_id”:9235861}],“leader”:{“id”:14149507,“store_id”:7982622},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:15219,“start_key”:“7480000000000000FFDA5F728000000004FFB101600000000000FA”,“end_key”:“7480000000000000FFDA5F728000000004FFBA8EBE0000000000FA”,“epoch”:{“conf_ver”:25,“version”:550},“peers”:[{“id”:7545089,“store_id”:7332002},{“id”:8311605,“store_id”:7982622},{“id”:9255377,“store_id”:9235861}],“leader”:{“id”:9255377,“store_id”:9235861},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:3744825,“start_key”:“748000000000005FFFE400000000000000F8”,“end_key”:“748000000000005FFFE600000000000000F8”,“epoch”:{“conf_ver”:23,“version”:8544},“peers”:[{“id”:7737868,“store_id”:7332002},{“id”:8783822,“store_id”:7982622},{“id”:9278037,“store_id”:9235861}],“leader”:{“id”:8783822,“store_id”:7982622},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:3676411,“start_key”:“7480000000000035FFE400000000000000F8”,“end_key”:“7480000000000035FFE600000000000000F8”,“epoch”:{“conf_ver”:23,“version”:4700},“peers”:[{“id”:7426544,“store_id”:7332002},{“id”:8170984,“store_id”:7982622},{“id”:10659576,“store_id”:9235861}],“leader”:{“id”:10659576,“store_id”:9235861},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:14148957,“start_key”:“7480000000000082FFD800000000000000F8”,“end_key”:“7480000000000082FFDA00000000000000F8”,“epoch”:{“conf_ver”:23,“version”:11316},“peers”:[{“id”:14148958,“store_id”:7332002},{“id”:14148959,“store_id”:7982622},{“id”:14148960,“store_id”:9235861}],“leader”:{“id”:14148960,“store_id”:9235861},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:3665325,“start_key”:“7480000000000014FFF700000000000000F8”,“end_key”:“7480000000000014FFFA00000000000000F8”,“epoch”:{“conf_ver”:23,“version”:1975},“peers”:[{“id”:7939421,“store_id”:7332002},{“id”:8497010,“store_id”:7982622},{“id”:9282426,“store_id”:9235861}],“leader”:{“id”:7939421,“store_id”:7332002},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:4716422,“start_key”:“7480000000000064FF8300000000000000F8”,“end_key”:“7480000000000064FF8500000000000000F8”,“epoch”:{“conf_ver”:23,“version”:8877},“peers”:[{“id”:7966010,“store_id”:7332002},{“id”:9235127,“store_id”:7982622},{“id”:13901838,“store_id”:9235861}],“leader”:{“id”:9235127,“store_id”:7982622},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:131}
{“id”:14143809,“start_key”:“7480000000000072FF7600000000000000F8”,“end_key”:“7480000000000072FF7900000000000000F8”,“epoch”:{“conf_ver”:23,“version”:10040},“peers”:[{“id”:14143810,“store_id”:7332002},{“id”:14143811,“store_id”:7982622},{“id”:14143812,“store_id”:9235861}],“leader”:{“id”:14143810,“store_id”:7332002},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}
{“id”:3665181,“start_key”:“7480000000000014FF8B00000000000000F8”,“end_key”:“7480000000000014FF8F00000000000000F8”,“epoch”:{“conf_ver”:23,“version”:1939},“peers”:[{“id”:7939457,“store_id”:7332002},{“id”:8418885,“store_id”:7982622},{“id”:9282462,“store_id”:9235861}],“leader”:{“id”:7939457,“store_id”:7332002},“written_bytes”:0,“read_bytes”:0,“written_keys”:0,“read_keys”:0,“approximate_size”:1,“approximate_keys”:0}

试试这个呢

curl -X DELETE http://192.168.100.94:2379/pd/api/v1/store/70059?force=1

[root@server ~]# curl -X DELETE http://192.168.100.94:2379/pd/api/v1/store/70059?force=1
“The store is set as Offline.”

重新查看,毫无影响,这个跟 store delete 应该一个意思吧?

如果是早于 5.0 rc 版本,应该是强制变为 Tombstone
你部署的是 5.0.1 版本,这个命令看代码是设置了 PhysicallyDestroyed。

这里你再重新添加 这个 ip:port 的 store 应该是会被允许的。

// Store address can not be the same as other stores.
for _, s := range c.GetStores() {
	// It's OK to start a new store on the same address if the old store has been removed or physically destroyed.
	if s.IsTombstone() || s.IsPhysicallyDestroyed() {
		continue
	}
	if s.GetID() != store.GetId() && s.GetAddress() == store.GetAddress() {
		return errors.Errorf("duplicated store address: %v, already registered by %v", store, s.GetMeta())
	}
}

[2021/06/17 16:56:03.572 +08:00] [ERROR] [util.rs:457] [“request failed”] [err_code=KV:PD:gRPC] [err=“Grpc(RpcFailure(RpcStatus { status: 2-UNKNOWN, details: Some(“duplicated store address: id:9172667 address:\“192.168.100.187:20160\” version:\“5.0.1\” status_address:\“192.168.100.187:20180\” git_hash:\“e26389a278116b2f61addfa9f15ca25ecf38bc80\” start_timestamp:1623920159 deploy_path:\”/home/tidb-deploy/tikv-20160/bin\” , already registered by id:70059 address:\“192.168.100.187:20160\” state:Offline version:\“5.0.1\” status_address:\“192.168.100.187:20180\” git_hash:\“e26389a278116b2f61addfa9f15ca25ecf38bc80\” start_timestamp:1623136089 deploy_path:"/home/tidb-deploy/tikv-20160/bin" last_heartbeat:1623751882105124348 “) }))”]
[2021/06/17 16:56:03.572 +08:00] [ERROR] [util.rs:466] [“reconnect failed”] [err_code=KV:PD:Unknown] [err=“Other(”[components/pd_client/src/util.rs:301]: cancel reconnection due to too small interval")"]
[2021/06/17 16:56:04.574 +08:00] [ERROR] [util.rs:457] [“request failed”] [err_code=KV:PD:gRPC] [err=“Grpc(RpcFailure(RpcStatus { status: 2-UNKNOWN, details: Some(“duplicated store address: id:9172667 address:\“192.168.100.187:20160\” version:\“5.0.1\” status_address:\“192.168.100.187:20180\” git_hash:\“e26389a278116b2f61addfa9f15ca25ecf38bc80\” start_timestamp:1623920159 deploy_path:\”/home/tidb-deploy/tikv-20160/bin\” , already registered by id:70059 address:\“192.168.100.187:20160\” state:Offline version:\“5.0.1\” status_address:\“192.168.100.187:20180\” git_hash:\“e26389a278116b2f61addfa9f15ca25ecf38bc80\” start_timestamp:1623136089 deploy_path:"/home/tidb-deploy/tikv-20160/bin" last_heartbeat:1623751882105124348 “) }))”]
[2021/06/17 16:56:04.574 +08:00] [FATAL] [server.rs:698] [“failed to start node: Grpc(RpcFailure(RpcStatus { status: 2-UNKNOWN, details: Some(“duplicated store address: id:9172667 address:\“192.168.100.187:20160\” version:\“5.0.1\” status_address:\“192.168.100.187:20180\” git_hash:\“e26389a278116b2f61addfa9f15ca25ecf38bc80\” start_timestamp:1623920159 deploy_path:\”/home/tidb-deploy/tikv-20160/bin\” , already registered by id:70059 address:\“192.168.100.187:20160\” state:Offline version:\“5.0.1\” status_address:\“192.168.100.187:20180\” git_hash:\“e26389a278116b2f61addfa9f15ca25ecf38bc80\” start_timestamp:1623136089 deploy_path:"/home/tidb-deploy/tikv-20160/bin" last_heartbeat:1623751882105124348 “) }))”]

你复制 [2021/06/17 16:56:03.572 +08:00] 这个旧日志干什么,现在

curl -X DELETE http://192.168.100.94:2379/pd/api/v1/store/70059?force=1

加了 force=1 啊,不是设置为了 PhysicallyDestroyed 吗,现在应该是可以加进去的