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

New leader triggers onLeave event #306

Open
benji opened this issue Mar 17, 2017 · 0 comments
Open

New leader triggers onLeave event #306

benji opened this issue Mar 17, 2017 · 0 comments

Comments

@benji
Copy link

benji commented Mar 17, 2017

https://gist.github.com/benji/04caa7a454cd9a63ebad87cf8ba18d38

Followers receive a member leave event for the new leader when the leadership election completes:

/127.0.0.1:5003 joined the cluster
15:34:50.309 [copycat-server-/127.0.0.1:5004-copycat] INFO  i.a.c.server.state.ServerContext - /127.0.0.1:5004 - Transitioning to FOLLOWER
State changed to FOLLOWER
15:34:51.451 [copycat-server-/127.0.0.1:5004-copycat] INFO  i.a.c.server.state.FollowerState - /127.0.0.1:5004 - Polling members [ServerMember[type=ACTIVE, status=AVAILABLE, serverAddress=/127.0.0.1:5003, clientAddress=null]]
15:34:51.622 [copycat-server-/127.0.0.1:5004-copycat] INFO  i.a.c.server.state.ServerContext - /127.0.0.1:5004 - Found leader /127.0.0.1:5003
/127.0.0.1:5003 left the cluster
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant