Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.3-alpha
-
None
-
None
-
Reviewed
Description
CodecPool enables reusing compressors/decompressors created. However, the onus is on the user to return the compressors/decompressors to the pool, and can be easily missed.
It would be quite handy to keep track of the total number of compressors/decompressors created and helper methods to check outstanding (not returned) compressors/decompressors. It immediately allows Hadoop and downstream projects to write unit tests for the same.