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 22:55:02 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk cb3a10362 -> df4dcd3e7


HADOOP-12788. OpensslAesCtrCryptoCodec should log which random number generator is used. Contributed
by Wei-Chiu Chuang.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/df4dcd3e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/df4dcd3e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/df4dcd3e

Branch: refs/heads/trunk
Commit: df4dcd3e75f1f935bd9a537e63758fee71cf4e02
Parents: cb3a103
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 14:54:45 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/df4dcd3e/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 c3f817b..634baed 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -1114,6 +1114,9 @@ Release 2.8.0 - UNRELEASED
     HADOOP-12764. Increase default value of KMX maxHttpHeaderSize and make it
     configurable. (zhz)
 
+    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/df4dcd3e/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