-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[enhancement](decommission) speed up decommission process (#14028) #14006
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
|
TeamCity pipeline, clickbench performance test result: |
|
|
||
| List<Long> backendTabletIds = invertedIndex.getTabletIdsByBackendId(beId); | ||
| if (backendTabletIds.isEmpty() && Config.drop_backend_after_decommission) { | ||
| if ((backendTabletIds.isEmpty() || Env.getCurrentRecycleBin().allTabletsInRecycledStatus(backendTabletIds)) |
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.
allTabletsInRecycledStatus is expensive, maybe we should put Config.drop_backend_after_decommission as the first condition.
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.
Appreciate for your suggestion, i have changed the code here.
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.
allTabletsInRecycledStatusis expensive, maybe we should putConfig.drop_backend_after_decommissionas the first condition.
Would be appreciate if you spend some time to review it again.
a471d2a to
a55f50a
Compare
cambyzju
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
hf200012
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. |
| idToRecycleTime = Maps.newHashMap(); | ||
| } | ||
|
|
||
| public synchronized boolean allTabletsInRecycledStatus(List<Long> backendTabletIds) { |
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.
The backendTabletIds may contains millions of ids, which may cause a long run.
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.
Thanks, as we've just discussed, i will add a threshold to control this check and add some logs.
cambyzju
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. |
Proposed changes
Issue Number: close #14028
Problem summary
Describe your changes.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...