hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From umamah...@apache.org
Subject hadoop git commit: HADOOP-12788. OpensslAesCtrCryptoCodec should log which random number generator is used. Contributed by Wei-Chiu Chuang.
Date Wed, 10 Feb 2016 23:07:57 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 9220bb649 -> 4324a3d01


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/4324a3d0
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/4324a3d0
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/4324a3d0

Branch: refs/heads/branch-2.8
Commit: 4324a3d0128d354faf8316d3d3ba0797c4a91d73
Parents: 9220bb6
Author: Uma Maheswara Rao G <uma.gangumalla@intel.com>
Authored: Wed Feb 10 14:54:45 2016 -0800
Committer: Uma Maheswara Rao G <uma.gangumalla@intel.com>
Committed: Wed Feb 10 15:07:33 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/4324a3d0/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 fd17be6..ddfe899 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -393,6 +393,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/4324a3d0/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);


Mime
View raw message