Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.8.0, 4.9.0
-
None
-
None
Description
Currently the cache of ConnectionInfo/ConnectionQueryServicesImpl can hold its entries forever. This can potentially lead to orphan cache entries, and since each ConnectionQueryServicesImpl object has an HConnection, it can also lead to leaked connections.
Due to the way that ConnectionInfo hashing works (see PHOENIX-3126 and PHOENIX-3607), this is particularly likely on a secure cluster.
The cache should be changed into an LRU-style cache with a fixed size and gradual expiration.