[ 
https://issues.apache.org/jira/browse/HADOOP-12007?focusedWorklogId=792894&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-792894
 ]

ASF GitHub Bot logged work on HADOOP-12007:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Jul/22 20:09
            Start Date: 19/Jul/22 20:09
    Worklog Time Spent: 10m 
      Work Description: sunchao commented on PR #4585:
URL: https://github.com/apache/hadoop/pull/4585#issuecomment-1189504924

   Thanks @kevins-29 , the fix looks good to me. However, is this addressing 
the issue mentioned in HADOOP-12007? my understanding is that the issue there 
is related to `CompressorStream` overrides `close` and doesn't return the 
compressor to the pool as result.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 792894)
    Time Spent: 50m  (was: 40m)

> GzipCodec native CodecPool leaks memory
> ---------------------------------------
>
>                 Key: HADOOP-12007
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12007
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Yejun Yang
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> org/apache/hadoop/io/compress/GzipCodec.java call 
> CompressionCodec.Util.createOutputStreamWithCodecPool to use CodecPool. But 
> compressor objects are actually never returned to pool which cause memory 
> leak.
> HADOOP-10591 uses CompressionOutputStream.close() to return Compressor object 
> to pool. But CompressionCodec.Util.createOutputStreamWithCodecPool actually 
> returns a CompressorStream which overrides close().
> This cause CodecPool.returnCompressor never being called. In my log file I 
> can see lots of "Got brand-new compressor [.gz]" but no "Got recycled 
> compressor".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to