pingcap / pingcap/tiflash

TiFlash process get blocked when cpu_quota is less than 1 cpu

Open
#9,488 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

severity/moderate type/bug
Dominant language
C++
Stars
1k
Forks
423
Avg merge
1d 15h
Merged PRs (30d)
24

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Deploy a tidb cluster using tiup with cpu_quota less than 100%

tiflash_servers:
- host: 127.0.0.1
  ...
  resource_control:
    cpu_quota: 80%
2. What did you expect to see? (Required)

tiflash starts normally or exit with explicit error message

3. What did you see instead (Required)

tiflash blocks forever

4. What is your TiFlash version? (Required)

master

Contributor guide

No contributing guide indexed for this repository

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

Reproduce with a TiUP cluster whose tiflash_servers resource_control.cpu_quota is set to 80%, then trace the TiFlash startup and CPU resource-control path involved in the block. Done means TiFlash either starts normally with a quota below one CPU or exits with an explicit error instead of blocking forever.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend, operating-systems
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.