forked from apache/accumulo
-
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.
Use ZooCache detached from Context for ServerPaths (apache#5253)
* Use ZooCache detached from Context for ServerPaths ServiceLockPaths cannot use ClientContext because that can be closed, and ServiceLockPaths needs to be reused inside the tablet locator thread pool, which is a static singleton that can survive longer than the client context. This removes context from ServiceLockPaths and causes ZookeeperLockChecker to provide it with a separate root path and ZooCache. This fixes the ITs broken after the merge of apache#5192 in e745a5d * Fix ManagerAssignmentIT * This fixes ManagerAssignmentIT flakiness that occurs because of the reuse of a ZooSession from a closed client connection in subsequent tests (flakiness depends on test order) * This should be fixed in subsequent fixes by removing the static singleton location cache and coupling it to the Context lifecycle (ServerContext or AccumuloClient/ClientContext) instead * This fixes the flakiness by maintaining a single AccumuloClient for the entirety of the SharedMiniClusterBase test cases; since only one cluster instance is used for the test, it only needs one client instance
- Loading branch information
Showing
9 changed files
with
590 additions
and
830 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.