kevins-29 opened a new pull request, #4739:
URL: https://github.com/apache/hadoop/pull/4739

   ### Description of PR
   Explicitly call `end()` when returning `Decompressor` implementations with 
`DoNotPool` annotation to the `CodecPool`.
   
   ### How was this patch tested?
   I created the following 
[project](https://github.com/kevins-29/hadoop-gzip-memory-leak) to demo the 
leak. You can run the demo with 
   
   ``` shell
   ./gradlew run --args=1024
   ``` 
   
   and then monitor the memory usage using
   
   ```shell
   while true; do echo \"$(date +%Y-%m-%d' '%H:%M:%S)\",$(pmap -x <PID> | grep 
"total kB" | awk '{print $4}'); sleep 10; done;
   ```
   
   ### Results - Before Patch
   
   ```
   ...
   ```
   
   ### Results - After Patch
   ```
   ...
   ```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to