Uh oh!
There was an error while loading. Please reload this page.
[enhance](metrics)add metrics to show compaction task num - #50706
Conversation
hello-stephen
commented
May 8, 2025
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
koarz
commented
May 8, 2025
run buildall |
koarz
commented
May 8, 2025
run buildall |
doris-robot
commented
May 8, 2025
TPC-H: Total hot run time: 34875 ms |
doris-robot
commented
May 8, 2025
TPC-DS: Total hot run time: 192463 ms |
doris-robot
commented
May 8, 2025
ClickBench: Total hot run time: 28.78 s |
hello-stephen
commented
May 8, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
May 8, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
koarz
commented
May 9, 2025
run cloud_p0 |
| _submitted_base_compactions[tablet->tablet_id()] = compaction; | ||
| } | ||
| st = _base_compaction_thread_pool->submit_func([=, this, compaction = std::move(compaction)]() { | ||
| DorisMetrics::instance()->base_compaction_task_running_total->increment(1); |
There was a problem hiding this comment.
Can the compaction_task_running_total metirc directly use the member function of the thread pool class?
PR approved by anyone and no changes requested. |
koarz
commented
May 13, 2025
run buildall |
koarz
commented
May 13, 2025
run buildall |
doris-robot
commented
May 13, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
koarz
commented
May 13, 2025
run performance |
koarz
commented
May 13, 2025
run external |
koarz
commented
May 13, 2025
run cloud_p0 |
hello-stephen
commented
May 13, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
doris-robot
commented
May 13, 2025
TPC-H: Total hot run time: 34698 ms |
doris-robot
commented
May 13, 2025
TPC-DS: Total hot run time: 193568 ms |
doris-robot
commented
May 13, 2025
ClickBench: Total hot run time: 29.04 s |
koarz
commented
May 13, 2025
run cloud_p0 |
PR approved by at least one committer and no changes requested. |
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
These metrics will be updated when the thread pool submits a task, the thread pool starts executing the task, and the thread pool is updated when the task is finished executing, where running uses increment to update instead of getting the number of running threads because the task executed by Defer is still part of the task Defer is finished executing the task before it is considered to be finished, and this leads to a situation where when the pool is finished executing the task, it is not considered to be finished until it is finished. When the last task finishes, the value of active_thread_num in Defer is 1, and the corresponding metric keeps 1, but it should actually be 0.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)