Skip to content

Concurrent flush lead to CPU waste #5409

@breezewish

Description

@breezewish

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Perform two flush over the same segment concurrently. One could be triggered in background and another could be triggered via write.

2. What did you expect to see? (Required)

One flush wait for another.

3. What did you see instead (Required)

CPU is 100% during one flush waiting for another.

4. What is your TiFlash version? (Required)

master

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions