Skip to content

[Enhancement] MetricEntity busy wait during memtable flush #10066

@platoneko

Description

@platoneko

Search before asking

  • I had searched in the issues and found no similar issues.

Description

Currently, MetricRegistry and MetricEntity use SpinLock to solve concurrency problems. However when MetricRegistry call trigger_all_hooks, these triggered hook functions may acquire other mutex, and these mutex may be held during some long time work.
image
image
i.e. LoadChannelMgr::_lock may be held during MemTable flush.

Solution

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions