Github user maoling commented on the issue:

    https://github.com/apache/zookeeper/pull/247
  
    @ALL
    if `getElectionAddress` method doesn't need a lock,then the deadlock will 
be fixed by the light of nature.
    but lots of methods in the `QuorumPeer` `synchronized (QV_LOCK)` which 
cause other potential deadlocks.
    I am wathching the logic in the `ZOOKEEPER-2080` to find a better way to 
process with `QV_LOCK` lock
    BTW:find a 
[blog](http://www.javacreed.com/what-is-deadlock-and-how-to-prevent-it/) which 
provides us some innovative way to prevent the deadlock.



---

Reply via email to