forked from apache/pulsar
-
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.
MockZooKeeper#failNow is unreliable (apache#7109)
* MockZooKeeper#failNow is unreliable The MockZooKeeper#failNow instructs the MockZooKeeper instance to fail the next call to zookeeper. In a multithreaded system with many things accessing zookeeper, using #failNow is unreliable, as a background thread could try to access ZK before the call that is actually under tests accesses it. This change tightens the condition on which the failed ZK call can occur, by checking the operation type and path. This resolves a flake that was occuring in ZooKeeperSessionExpiryRecoveryTest. * Fixed import missing after merge Co-authored-by: Ivan Kelly <[email protected]>
- Loading branch information
Showing
12 changed files
with
339 additions
and
126 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
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
Oops, something went wrong.