-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](compaction) fix null pointer when retrieving CPU load average #37171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 39839 ms |
TPC-DS: Total hot run time: 172619 ms |
ClickBench: Total hot run time: 30.54 s |
dataroaring
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
be/src/util/system_metrics.cpp
Outdated
|
|
||
| double SystemMetrics::get_load_average_1_min() { | ||
| return _load_average_metrics->load_average_1_minutes->value(); | ||
| if (!_load_average_metrics) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems incorrect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 39578 ms |
TPC-DS: Total hot run time: 173446 ms |
ClickBench: Total hot run time: 30.64 s |
dataroaring
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
…pache#37171) 1 When enable_system_metrics = false, system_metrics is a null pointer 2 When BE exits, system_metrics has been destructed, and the compaction background thread may still be running
…37171) 1 When enable_system_metrics = false, system_metrics is a null pointer 2 When BE exits, system_metrics has been destructed, and the compaction background thread may still be running
1 When enable_system_metrics = false, system_metrics is a null pointer
2 When BE exits, system_metrics has been destructed, and the compaction background thread may still be running