Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
The anonymous Thread object created in ShutdownHookManager is a GC root.
screenshot_1 shows how DN object be traced to the GC root.
It's not a problem in production.
It's a problem in test, especially when MiniDFSCluster starts/shutdowns many DNs, which could cause OutOfMemoryError.
screenshot_2 shows many DN objects are not GCed when run the test of HDFS-8838.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-8838 Erasure Coding: Tolerate datanode failures in DFSStripedOutputStream when the data length is small
-
- Resolved
-
- relates to
-
HADOOP-12261 Surefire needs to make sure the JVMs it fires up fit within the memory available
-
- Patch Available
-