Skip to content

集群重启时,follower启动失败 #1096

Open
@jiangguiqiang199

Description

@jiangguiqiang199

集群重启时,follower启动失败,

follower节点报错信息:
Node xxxxxx:9002 reject term_unmatched AppendEntriesRequest from xxxxxxx.cluster.local:9002, term=40, prevLogIndex=89436606188, prevLogTerm=40, localPrevLogTerm=0, lastLogIndex=0, entriesSize=0.

后采用CliService.removePeer(String groupId, Configuration conf, PeerId peer);将该异常follower节点移除

再采用 CliService.addPeer(String groupId, Configuration conf, PeerId peer);将该节点加入jraft group

addPeer异常信息: {"code":-1,"errorMsg":"com.alipay.remoting.rpc.exception.InvokeTimeoutException: Invoke timeout when invoke with callback.The address is 10.3.31.43:9002","ok":false,"raftError":"UNKNOWN"}

主节点报错:
com.alipay.sofa.jraft.core.Replicator : Fail to issue RPC to xxxxxx:9002, consecutiveErrorTimes=31, error=Status[EINTERNAL<1004>: RPC exception:null]

Your scenes

Describe your use scenes (why need this feature)

Your advice

Describe the advice or solution you'd like

Environment

  • SOFAJRaft version: 1.3.13
  • JVM version (e.g. jdk 11):
  • OS version (e.g. aws eks):
  • Maven version:
  • IDE version:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions