Skip to content
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

Raft member change fails and still returns success to meta #3386

Closed
cangfengzhs opened this issue Dec 1, 2021 · 1 comment
Closed

Raft member change fails and still returns success to meta #3386

cangfengzhs opened this issue Dec 1, 2021 · 1 comment
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@cangfengzhs
Copy link
Contributor

Example:

// src/kvstore/Part.cpp
      case OP_REMOVE_PEER: {
        auto peer = decodeHost(OP_REMOVE_PEER, log);
        auto ts = getTimestamp(log);
        if (ts > startTimeMs_) {
          LOG(INFO) << idStr_ << "preprocess remove peer " << peer;
          preProcessRemovePeer(peer);          //  <-- Here may be failed.
        } else {
          LOG(INFO) << idStr_ << "Skip stale remove peer " << peer << ", the part is opened at "
                    << startTimeMs_ << ", but the log timestamp is " << ts;
        }
        break;
      }

All member changes, not just preProcessRemovePeer, did not return the change result. Meta will consider the operation to be successful. This leads to the possibility of more copies or loss during the balance process.

https://discuss.nebula-graph.com.cn/t/topic/6616

@cangfengzhs cangfengzhs added the type/bug Type: something is unexpected label Dec 1, 2021
@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Dec 1, 2021
@Sophie-Xie Sophie-Xie modified the milestones: v3.0.0, v3.1.0 Dec 15, 2021
@critical27 critical27 mentioned this issue Dec 16, 2021
7 tasks
@critical27
Copy link
Contributor

Case closed, the plan is not generated properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

3 participants