Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
See HADOOP-14523 for motivation. Credit to misha@cloudera.com for reporting initially there.
Basically, the CryptoCodec class is not a closeable, but the OpensslAesCtrCryptoCodec implementation of it contains a closeable member (the Random object). Currently it is left for finalize() to clean up, this depends on when a FGC is run, and would create problems if OpensslAesCtrCryptoCodec is used with OsSecureRandom, which could let OS run out of FDs on /dev/urandom if too many codecs created.
Attachments
Attachments
Issue Links
- relates to
-
HADOOP-14523 OpensslAesCtrCryptoCodec.finalize() holds excessive amounts of memory
- Resolved