Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
3.4.0
-
Reviewed
Description
An element in RouterStateIdContext#namespaceIdMap is deleted when there is no connectionPool referencing the namespace. This is done by a thread in ConnectionManager that cleans up stale connectionPools. I propose a less aggressive approach, that is, cleaning up an entry when the router cannot resolve a namenode belonging to the namespace.
Some benefits of this approach are:
- Even when there are no active connections, the router still tracks a recent state of the namenode. This will be beneficial for debugging.
- Simpler lifecycle for the map entries. The entries are long-lived.
- Few operations under the writeLock in ConnectionManager.
Attachments
Issue Links
- links to