Skip to content

Consider region pending status when dispatch task for disagg tiflash mode #7301

@guo-shaoge

Description

@guo-shaoge

Enhancement

For now, we didn't consider region status when dispatch MPPTask(tidb or tiflash_compute node). It may lead to MPPTask send to node whose region snapshot has not been synced from tikv, which make query to wait for a long time(aka wait index timeout, which is 10s).

So we need to consider region's pending status.

CN didn't consider region status at all:
cb1d65c7-c117-4d26-aeb4-945f025c14da

TiDB only consider down peer, didn't consider pending peer:
image

Metadata

Metadata

Assignees

Labels

type/enhancementThe issue or PR belongs to an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions