-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[bug](cloud) Fix npe when show cluster load statistic #50866
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. Please clearly describe your PR:
|
|
run buildall |
TPC-H: Total hot run time: 33851 ms |
TPC-DS: Total hot run time: 193284 ms |
ClickBench: Total hot run time: 29.71 s |
|
run cloud_p0 |
|
run feut |
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 33733 ms |
TPC-DS: Total hot run time: 186007 ms |
ClickBench: Total hot run time: 29.53 s |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
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
### What problem does this PR solve? In cloud mode: before ``` MySQL [(none)]> SHOW PROC '/cluster_balance/cluster_load_stat/location_default/REMOTE_CACHE'; ERROR 1105 (HY000): errCode = 2, detailMessage = Cannot invoke "org.apache.doris.clone.LoadStatisticForTag.getStatistic(org.apache.doris.thrift.TStorageMedium)" because "loadStatisticForTag" is null ``` after ``` MySQL [(none)]> SHOW PROC "/cluster_balance/cluster_load_stat/location_default/REMOTE_CACHE"; Empty set (0.00 sec) ``` And may be we should support show cluster load stat by compute-group later.
### What problem does this PR solve? In cloud mode: before ``` MySQL [(none)]> SHOW PROC '/cluster_balance/cluster_load_stat/location_default/REMOTE_CACHE'; ERROR 1105 (HY000): errCode = 2, detailMessage = Cannot invoke "org.apache.doris.clone.LoadStatisticForTag.getStatistic(org.apache.doris.thrift.TStorageMedium)" because "loadStatisticForTag" is null ``` after ``` MySQL [(none)]> SHOW PROC "/cluster_balance/cluster_load_stat/location_default/REMOTE_CACHE"; Empty set (0.00 sec) ``` And may be we should support show cluster load stat by compute-group later.
What problem does this PR solve?
In cloud mode:
before
after
And may be we should support show cluster load stat by compute-group later.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)