Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.8.2.0
-
None
-
None
Description
The way that waitUntilLeaderIsElectedOrChanged() works is to wait for a ZK callback on leader change. However, if the leader is already elected (and won't change) at the time waitUntilLeaderIsElectedOrChanged() is called, this function will wait for the full timeout, which is unnecessary.