-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Balance fix #3775
Balance fix #3775
Conversation
d13e957
to
0509c12
Compare
0509c12
to
bf2ed7d
Compare
bf2ed7d
to
bad141a
Compare
|
||
bool emty = std::find_if(existTasks.begin(), | ||
existTasks.end(), | ||
[](std::pair<const PartitionID, std::vector<BalanceTask>>& p) { | ||
return !p.second.empty(); | ||
}) == existTasks.end(); | ||
if (emty || rc != nebula::cpp2::ErrorCode::SUCCEEDED) { | ||
if (emty) { | ||
executorOnFinished_(meta::cpp2::JobStatus::FINISHED); |
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.
I can't recall executorOnFinished_
, what is this for? Why only some of code branch need to call executorOnFinished_
?
And do we need to handle LeaderBalanceJobExecutor
?
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.
LeaderBalanceJobExecutor
finish or stop need to call executorOnFinished_, failed don't need to. LeaderBalanceJobExecutor also do like this
aab7697
to
1335939
Compare
30f6ab4
to
bc83c80
Compare
bc83c80
to
90d7749
Compare
bf38f76
to
2269be4
Compare
4fc7bf9
to
a872b70
Compare
bd62dea
to
3971295
Compare
119da8a
to
7e21231
Compare
ce713e3
to
fdca66b
Compare
test branch, close now |
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
Description:
How do you solve it?
Special notes for your reviewer, ex. impact of this fix, design document, etc:
Checklist:
Tests:
Affects:
Release notes:
Please confirm whether to be reflected in release notes and how to describe: