pingcap / pingcap/tiup

当只有一个tikv一个TiFlash节点时,缩容TiFlash组件报错,提示信息如下:

Open
#2,449 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/bug
Dominant language
Go
Stars
466
Forks
338
Avg merge
3d 7h
Merged PRs (30d)
8

Description

Bug Report

当只有一个tikv一个TiFlash节点时,缩容TiFlash组件报错,提示信息如下:

  1. What did you do?
    当只有一个TiFlash节点时,缩容TiFlash组件报错,提示信息如下:
    [PD:core:ErrStoresNotEnough]can not remove store 68 since the number of up stores would be 1 while need 3

使用tiup cluster scale-in也报相同的错误。这个控制不是TiKV的么?

  1. What did you expect to see?

tiup cluster scale-in '1.1.1.1:9000';
移除tiflash

  1. What did you see instead?

tikv的配置不应该影响tiflash

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the tiup cluster scale-in entry point and reproduce the failure using one TiKV and one TiFlash node. Trace why the TiKV store-count requirement blocks TiFlash removal; done means the TiFlash node can be removed without applying the unrelated TiKV constraint.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.