hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Chen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-14524) Make CryptoCodec Closeable so it can be cleaned up proactively
Date Wed, 14 Jun 2017 02:57:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-14524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiao Chen updated HADOOP-14524:
-------------------------------
    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.

  was:
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 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.


> Make CryptoCodec Closeable so it can be cleaned up proactively
> --------------------------------------------------------------
>
>                 Key: HADOOP-14524
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14524
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message