Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
0.22.0, 2.0.0-alpha
-
None
-
Reviewed
Description
Some applications like the TT/JT (pre-2.0) and probably the RM/NM cycle through DistributedFileSystem objects reasonably frequently. So long as they call close() it isn't a big problem, except that currently DFSClient.close() doesn't explicitly close the SocketCache. So unless a full GC runs (causing the references to get finalized), many SocketCaches can get orphaned, each with many open sockets inside. We should fix the close() function to close all cached sockets.