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

Removing leader node #246

Open
uber42 opened this issue Jun 27, 2022 · 0 comments
Open

Removing leader node #246

uber42 opened this issue Jun 27, 2022 · 0 comments

Comments

@uber42
Copy link
Contributor

uber42 commented Jun 27, 2022

ErrClusterClosed when removing leader, but the node is removed
We use backoff on SyncRequestDeleteNode and second attempt fails with ErrClusterNotFound.

It looks like deleting a node is faster than getting a response to a request and exiting the request happens with event Terminated. Reproduced very rarely.

Logs:

msg="[12321:00001] applied REMOVE ccid 0 (79), n00001" component=dragonboat pkg=rsm
msg="[f:1,l:79,t:3,c:79,a:78] [12321:00001] t3 became follower" component=dragonboat pkg=raft
msg="[12321:00001] applied ConfChange Remove for itself" component=dragonboat pkg=dragonboat
msg="leader updated" clid=12321 component=raft leader=0 mds=1 method=LeaderUpdated term=3
msg="raft cluster already closed" clid=12321 component=raft mds=1 <-- first attempt (ErrClusterClosed)
msg="failed to disjoin: failed to delete raft member: cluster not found" component=api <-- out on second attempt (ErrClusterNotFound)

Dragonboat version

v3.3.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant