HADOOP-12788. OpensslAesCtrCryptoCodec should log which random number generator is used. Contributed by Wei-Chiu Chuang.
This commit is contained in:
parent
cb3a10362d
commit
df4dcd3e75
|
@ -1114,6 +1114,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HADOOP-12764. Increase default value of KMX maxHttpHeaderSize and make it
|
HADOOP-12764. Increase default value of KMX maxHttpHeaderSize and make it
|
||||||
configurable. (zhz)
|
configurable. (zhz)
|
||||||
|
|
||||||
|
HADOOP-12788. OpensslAesCtrCryptoCodec should log which random number generator is used.
|
||||||
|
(Wei-Chiu Chuang via umamahesh)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
||||||
|
|
|
@ -61,6 +61,9 @@ public class OpensslAesCtrCryptoCodec extends AesCtrCryptoCodec {
|
||||||
Random.class);
|
Random.class);
|
||||||
try {
|
try {
|
||||||
random = ReflectionUtils.newInstance(klass, conf);
|
random = ReflectionUtils.newInstance(klass, conf);
|
||||||
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("Using " + klass.getName() + " as random number generator.");
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.info("Unable to use " + klass.getName() + ". Falling back to " +
|
LOG.info("Unable to use " + klass.getName() + ". Falling back to " +
|
||||||
"Java SecureRandom.", e);
|
"Java SecureRandom.", e);
|
||||||
|
|
Loading…
Reference in New Issue