-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.9.0, 3.0.0-alpha4, 2.8.6
-
Component/s: None
-
Labels:None
-
Hadoop Flags:Reviewed
See HADOOP-14523 for motivation. Credit to Misha Dmitriev 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.
- relates to
-
HADOOP-14523 OpensslAesCtrCryptoCodec.finalize() holds excessive amounts of memory
-
- Resolved
-