forked from apache/zookeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZOOKEEPER-2080: Fix deadlock in dynamic reconfiguration
Use explicit fine grained locks for synchronizing access to QuorumVerifier states in QuorumPeer. Author: Michael Han <[email protected]> Reviewers: Alexander Shraer <[email protected]>, Edward Ribeiro <[email protected]>, Flavio Junqueira <[email protected]> Closes apache#92 from hanm/ZOOKEEPER-2080 and squashes the following commits: 25f0caf [Michael Han] Further simplify code - suggested by Alex. 08301f4 [Michael Han] Remove QuorumVerifier from connectOne signatures. Get last seen quorum verifier inside connectOne, when needed, instead. de367bf [Michael Han] Address review comments from Alex and Edward. 1. Use Object instead of byte[0] for lock. Naming and modifier updates as well. 2. Synchronize on the lock object in connectOne, also simplified code a little bit. 8995dd4 [Michael Han] ZOOKEEPER-2080: Fix deadlock in dynamic reconfiguration. Use explicit fine grained locks for synchronizing access to QuorumVerifier states in QuorumPeer. (cherry picked from commit 434abbb) Signed-off-by: Rakesh Radhakrishnan <[email protected]>
- Loading branch information
Showing
2 changed files
with
128 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters