shayhatsor / zookeeper

Apache ZooKeeper .NET async Client
https://nuget.org/packages/ZooKeeperNetEx/
Apache License 2.0
236 stars 53 forks source link

_leaderElectionSupport.getLeaderHostName() is not returning the host name as supplied #16

Open sagfan opened 7 years ago

sagfan commented 7 years ago

it returns the node data , which makes it difficult to know which node it is is it possible to get the leader node ?

shayhatsor commented 7 years ago

can you please explain more about the issue ?

sagfan commented 7 years ago

Hi ,yes When i call the getLeaderHostName method it returns the data of the leader node instead of its name or path , meaning i have to iterate throw all the nodes and check them for the data and get the leader path this way