Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INT-4088 ZookeeperLeaderTests: fix race condition
Two initiators for the same path, same `SmartLifecycleRoleController` and, finally, same `adapter`. So, one initiator after `yield()` stops the `adapter` and at the same time another starts it. Since there is no barrier in between events and assertion, we end up with an early "re-granting". * Add `CountDownLatch yieldBarrier` to `countDown()` after performing second `adapter.isRunning()` assert * `LeaderEventPublisher` waits for the `yieldBarrier` after the first `OnRevokedEvent`
- Loading branch information