Repository: hadoop Updated Branches: refs/heads/branch-2 fc9eb4577 -> e90f7ef98
HADOOP-12788. OpensslAesCtrCryptoCodec should log which random number generator is used. Contributed by Wei-Chiu Chuang. (cherry picked from commit df4dcd3e75f1f935bd9a537e63758fee71cf4e02) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e90f7ef9 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e90f7ef9 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e90f7ef9 Branch: refs/heads/branch-2 Commit: e90f7ef988391a31e37e1ec0f3e1e03500449e4c Parents: fc9eb45 Author: Uma Maheswara Rao G <uma.ganguma...@intel.com> Authored: Wed Feb 10 14:54:45 2016 -0800 Committer: Uma Maheswara Rao G <uma.ganguma...@intel.com> Committed: Wed Feb 10 15:04:42 2016 -0800 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/crypto/OpensslAesCtrCryptoCodec.java | 3 +++ 2 files changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/e90f7ef9/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 52d6fde..437e9c5 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -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 http://git-wip-us.apache.org/repos/asf/hadoop/blob/e90f7ef9/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/OpensslAesCtrCryptoCodec.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/OpensslAesCtrCryptoCodec.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/OpensslAesCtrCryptoCodec.java index 4ca79b3..63c382c 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/OpensslAesCtrCryptoCodec.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/OpensslAesCtrCryptoCodec.java @@ -61,6 +61,9 @@ public class OpensslAesCtrCryptoCodec extends AesCtrCryptoCodec { 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);