pingcap / pingcap/tiflash

Let TiFlash log asynchronously

Open
#3,142 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue help wanted type/enhancement
Dominant language
C++
Stars
1k
Forks
423
Avg merge
1d 15h
Merged PRs (30d)
24

Description

Currently, TiFlash log synchronously using Poco Framework, log function such as LOG_INFO will wait until the log message flush to the disk.
image
It may become bottleneck and if there is any error scenario crazy logging, will lead to further degradation of the system.

I think we should let TiFlash log asynchronously by using Poco::AsyncChannel
image

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

Start by locating TiFlash's Poco-based logging setup and the LOG_INFO entry points, then read Poco::AsyncChannel documentation and the existing logging flow. Done means log calls no longer wait for messages to flush to disk while preserving the intended log output and handling the stated error-heavy logging scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
observability, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.