zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ibrahim <i.s.el-san...@newcastle.ac.uk>
Subject RE: Strange behaviour in Leader election
Date Wed, 29 Oct 2014 13:10:08 GMT
Yes, there is no problem with the log. Now I understand how the leader is elected and why Zookeeper
elects server number 3. It is because it has the highest myid number.

Thanks

Ibrahim

From: Flavio Junqueira-2 [via zookeeper-user] [mailto:ml-node+s578899n7580489h83@n2.nabble.com]
Sent: Wednesday, October 29, 2014 01:04 م
To: Ibrahim El-sanosi (PGR)
Subject: Re: Strange behaviour in Leader election

I don't see anything wrong with the logs, server 3 is getting elected:
2014-10-29 12:40:49,814 [myid:3] - DEBUG [QuorumPeer[myid=3]/0.0.0.0:2181:FastLeaderElection@885]
- Adding vote: from=2, proposed leader=3, proposed zxid=0x0, proposed election epoch=0x1
2014-10-29 12:40:50,014 [myid:3] - DEBUG [QuorumPeer[myid=3]/0.0.0.0:2181:FastLeaderElection@548]
- About to leave FLE instance: leader=3, zxid=0x0, my id=3, my state=LEADING 2014-10-29 12:40:50,014
[myid:3] - INFO  [QuorumPeer[myid=3]/0.0.0.0:2181:QuorumPeer@796] - LEADING
 and has a quorum of supporters:
2014-10-29 12:40:51,153 [myid:3] - INFO  [QuorumPeer[myid=3]/0.0.0.0:2181:Leader@943] - Have
quorum of supporters, sids: [ 1,2,3 ]; starting up and setting last processed zxid: 0x100000000
-Flavio

     On Wednesday, October 29, 2014 12:50 PM, Ibrahim <[hidden email]</user/SendEmail.jtp?type=node&node=7580489&i=0>>
wrote:



 Yes, the attachment shows the logs for both leader and follower.

LeaderLog.log
<http://zookeeper-user.578899.n2.nabble.com/file/n7580488/LeaderLog.log>
FollowerLog.log
<http://zookeeper-user.578899.n2.nabble.com/file/n7580488/FollowerLog.log>

Thank you

Ibrahim





--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/Strange-behaviour-in-Leader-election-tp7580475p7580488.html
Sent from the zookeeper-user mailing list archive at Nabble.com.




________________________________
If you reply to this email, your message will be added to the discussion below:
http://zookeeper-user.578899.n2.nabble.com/Strange-behaviour-in-Leader-election-tp7580475p7580489.html
To unsubscribe from Strange behaviour in Leader election, click here<http://zookeeper-user.578899.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7580475&code=aS5zLmVsLXNhbm9zaUBuZXdjYXN0bGUuYWMudWt8NzU4MDQ3NXw1NTE4MjI0Njk=>.
NAML<http://zookeeper-user.578899.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/Strange-behaviour-in-Leader-election-tp7580475p7580490.html
Sent from the zookeeper-user mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message