-
Notifications
You must be signed in to change notification settings - Fork 521
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
fix(core): task restore interrupt problem on restart server #2401
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2401 +/- ##
============================================
+ Coverage 65.59% 66.23% +0.64%
- Complexity 587 828 +241
============================================
Files 511 511
Lines 42590 42595 +5
Branches 5941 5942 +1
============================================
+ Hits 27936 28213 +277
+ Misses 11840 11562 -278
- Partials 2814 2820 +6 ☔ View full report in Codecov by Sentry. |
} | ||
} | ||
if (page != null) { | ||
page = PageInfo.pageInfo(iter); | ||
} | ||
} while (page != null); | ||
} | ||
for (HugeTask<V> task : taskList){ | ||
LOG.info("restore task {}",task ); |
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.
expect the space after ","
@@ -151,14 +152,18 @@ public <V> void restoreTasks() { | |||
iter.hasNext();) { | |||
HugeTask<V> task = iter.next(); | |||
if (selfServer.equals(task.server())) { | |||
this.restore(task); | |||
taskList.add(task); |
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.
we may fix this bug by changing the order of PENDING_STATUSES elements
...aph-server/hugegraph-core/src/main/java/org/apache/hugegraph/task/StandardTaskScheduler.java
Outdated
Show resolved
Hide resolved
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
Purpose of the PR
Main Changes
Verifying these changes
Does this PR potentially affect the following parts?
Documentation Status
Doc - TODO
Doc - Done
Doc - No Need