Repository: hadoop Updated Branches: refs/heads/trunk 567b5558d -> 6e5ffb74d
HDFS-13885. Add debug logs in dfsclient around decrypting EDEK. Contributed by Kitti Nanasi. Signed-off-by: Xiao Chen <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/6e5ffb74 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/6e5ffb74 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/6e5ffb74 Branch: refs/heads/trunk Commit: 6e5ffb74dd678ddc3392ae2f251c80fc5cc8c62f Parents: 567b555 Author: Kitti Nanasi <[email protected]> Authored: Mon Sep 3 22:32:53 2018 -0700 Committer: Xiao Chen <[email protected]> Committed: Mon Sep 3 22:37:37 2018 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hdfs/DFSClient.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/6e5ffb74/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClient.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClient.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClient.java index adbb133..fb75322 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClient.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClient.java @@ -953,8 +953,12 @@ public class DFSClient implements java.io.Closeable, RemotePeerFactory, final CryptoCodec codec = HdfsKMSUtil.getCryptoCodec(conf, feInfo); KeyVersion decrypted; try (TraceScope ignored = tracer.newScope("decryptEDEK")) { + LOG.debug("Start decrypting EDEK for file: {}, output stream: 0x{}", + dfsos.getSrc(), Integer.toHexString(dfsos.hashCode())); decrypted = HdfsKMSUtil.decryptEncryptedDataEncryptionKey(feInfo, getKeyProvider()); + LOG.debug("Decrypted EDEK for file: {}, output stream: 0x{}", + dfsos.getSrc(), Integer.toHexString(dfsos.hashCode())); } final CryptoOutputStream cryptoOut = new CryptoOutputStream(dfsos, codec, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
