Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Currently in hadoop codebase, we have two classes which implements byte buffers pooling.
One is ElasticByteBufferPool which doesn't use weak references and thus could cause memory leaks in production environment.
Other is DirectBufferPool which uses weak references but doesn't support caller's preference for either on-heap or off-heap buffers.
The idea is to create an improved version of ElasticByteBufferPool by subclassing it ( as it is marked as public and stable and used widely in hdfs ) with essential functionalities required for effective buffer pooling. This is important for the parent Vectored IO work.
Attachments
Issue Links
- relates to
-
HDFS-17670 HDFS Client's direct memory leaks with erasure coding enabled
- Patch Available
- links to