Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.3.2, 1.4.4
-
None
-
Reviewed
Description
The code that closes down a ZKW that fails to initialize when attempting to connect to the remote cluster is not MT safe and can in theory leak ZooKeeperWatcher instances. The allocation of a new ZKW and store to the reference is not atomic. Might have concurrent allocations with only one winning store, leading to leaked ZKW instances.