diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 76d29bb012..7a725be18b 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -177,6 +177,9 @@ Trunk (Unreleased) HADOOP-10769. Create KeyProvider extension to handle delegation tokens. (Arun Suresh via atm) + HADOOP-10812. Delegate KeyProviderExtension#toString to underlying + KeyProvider. (wang) + BUG FIXES HADOOP-9451. Fault single-layer config if node group topology is enabled. diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyProviderExtension.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyProviderExtension.java index 9e1a185386..ba048b5a3e 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyProviderExtension.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyProviderExtension.java @@ -120,4 +120,9 @@ public KeyVersion rollNewVersion(String name, byte[] material) public void flush() throws IOException { keyProvider.flush(); } + + @Override + public String toString() { + return getClass().getSimpleName() + ": " + keyProvider.toString(); + } }