Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

fix task in recovered balance plan is still marked as FAILED #528

Merged
merged 3 commits into from
Jul 21, 2021

Conversation

critical27
Copy link
Contributor

@critical27 critical27 commented Jul 14, 2021

When task is failed for some reason, when recovering, they are marked as IN_PROGRESS again, but balance data id will still show FAILED. Just save the status when plan is recovered.

panda-sheep
panda-sheep previously approved these changes Jul 15, 2021
Copy link
Contributor

@panda-sheep panda-sheep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done!

@critical27
Copy link
Contributor Author

There will be more changes, hold on one second.

@critical27 critical27 added the ready-for-testing PR: ready for the CI test label Jul 16, 2021
@critical27
Copy link
Contributor Author

critical27 commented Jul 16, 2021

close #458
close #456

Ready

@@ -36,6 +36,10 @@ folly::Future<Status> AdminClient::transLeader(GraphSpaceID spaceId,
if (it == peers.end()) {
return Status::PartNotFound();
}
if (peers.size() == 1 && peers.front() == leader) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure the leader is being selected?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, transfer leader will failed in some case when replica is 1. see #458.

Copy link
Contributor

@liuyu85cn liuyu85cn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@critical27 critical27 merged commit 12ceb15 into vesoft-inc:master Jul 21, 2021
@critical27 critical27 deleted the fix branch July 21, 2021 11:41
critical27 added a commit that referenced this pull request Aug 2, 2021
* fix task in recovered balance plan is still marked as FAILED (#528)

* fix task in recovered balance plan is still marked as FAILED

* fix bugs

* Fix db_dump print int vid (#533)

* fix db_dump print int vid

* fix --vids

* fix partId

* use new common

Co-authored-by: Doodle <13706157+critical27@users.noreply.github.com>
Co-authored-by: laura-ding <48548375+laura-ding@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants