HADOOP-12788. OpensslAesCtrCryptoCodec should log which random number generator is used. Contributed by Wei-Chiu Chuang.
(cherry picked from commit df4dcd3e75f1f935bd9a537e63758fee71cf4e02)
This commit is contained in:
parent
fc9eb4577c
commit
e90f7ef988
@ -457,6 +457,9 @@ Release 2.8.0 - UNRELEASED
|
||||
HADOOP-12752. Improve diagnostics/use of envvar/sysprop credential
|
||||
propagation (Steve Loughran via cnauroth)
|
||||
|
||||
HADOOP-12788. OpensslAesCtrCryptoCodec should log which random number generator is used.
|
||||
(Wei-Chiu Chuang via umamahesh)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
||||
|
@ -61,6 +61,9 @@ public void setConf(Configuration conf) {
|
||||
Random.class);
|
||||
try {
|
||||
random = ReflectionUtils.newInstance(klass, conf);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Using " + klass.getName() + " as random number generator.");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LOG.info("Unable to use " + klass.getName() + ". Falling back to " +
|
||||
"Java SecureRandom.", e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user