-
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
job use future #4654
job use future #4654
Conversation
cannot stop a failed job? (root@nebula) [test]> show jobs;
+--------+------------------+------------+----------------------------+----------------------------+
| Job Id | Command | Status | Start Time | Stop Time |
+--------+------------------+------------+----------------------------+----------------------------+
| 14 | "ZONE_BALANCE" | "FAILED" | 2022-09-19T11:12:54.000000 | 2022-09-19T11:13:25.000000 |
| 13 | "ZONE_BALANCE" | "FAILED" | 2022-09-19T11:11:49.000000 | 2022-09-19T11:12:54.000000 |
| 12 | "LEADER_BALANCE" | "FINISHED" | 2022-09-19T09:29:16.000000 | 2022-09-19T09:29:21.000000 |
| 11 | "ZONE_BALANCE" | "FINISHED" | 2022-09-19T09:29:21.000000 | 2022-09-19T11:11:49.000000 |
| 10 | "LEADER_BALANCE" | "FINISHED" | 2022-09-19T08:15:59.000000 | 2022-09-19T08:15:59.000000 |
| 9 | "ZONE_BALANCE" | "FAILED" | 2022-09-19T08:15:59.000000 | 2022-09-19T09:29:16.000000 |
| 8 | "LEADER_BALANCE" | "FINISHED" | 2022-09-19T08:14:18.000000 | 2022-09-19T08:14:23.000000 |
| 7 | "ZONE_BALANCE" | "FINISHED" | 2022-09-19T08:14:59.000000 | 2022-09-19T08:15:59.000000 |
| 6 | "LEADER_BALANCE" | "FINISHED" | 2022-09-19T08:07:32.000000 | 2022-09-19T08:07:37.000000 |
| 5 | "LEADER_BALANCE" | "FINISHED" | 2022-09-19T08:05:26.000000 | 2022-09-19T08:05:31.000000 |
| 4 | "ZONE_BALANCE" | "FINISHED" | 2022-09-19T08:05:31.000000 | 2022-09-19T08:07:32.000000 |
| 3 | "LEADER_BALANCE" | "FINISHED" | 2022-09-19T08:04:04.000000 | 2022-09-19T08:04:09.000000 |
| 2 | "ZONE_BALANCE" | "STOPPED" | 2022-09-19T08:07:37.000000 | 2022-09-19T08:10:26.000000 |
+--------+------------------+------------+----------------------------+----------------------------+
Got 13 rows (time spent 2745/3430 us)
Tue, 20 Sep 2022 10:11:12 CST
(root@nebula) [test]> stop job 14;
[ERROR (-1005)]: Finished job or failed job can not be stopped, please start another job instead
Tue, 20 Sep 2022 10:11:17 CST
We will not be able to start a new balance job if a failed job cannnot be stopped. |
When I tested it in the enterprise version, it was OK. I take a look. thx |
@kikimo https://github.com/vesoft-inc/nebula-ent/pull/861. this pr is not synced to the community version. |
e6d860a
to
11379f5
Compare
Codecov ReportBase: 84.67% // Head: 84.70% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #4654 +/- ##
==========================================
+ Coverage 84.67% 84.70% +0.02%
==========================================
Files 1358 1358
Lines 135654 135694 +40
==========================================
+ Hits 114868 114934 +66
+ Misses 20786 20760 -26
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
generally LGTM |
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.
verified, LGTM
Don't need merge first, wait for @critical27 to take a look |
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.
Good job~
b67d1ea
cfcade4
to
b67d1ea
Compare
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.
Well done
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
fix comments
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
Description:
Use future to make meta jobs of different spaces execute in parallel
note:
Because the balance leader is for all spaces, it will not be dealt with here.
Same as https://github.com/vesoft-inc/nebula-ent/pull/1259
Also resolved issue https://github.com/vesoft-inc/nebula-ent/issues/867
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: