From 7273ef05906bdc64aecfb0b7a9dce036e0485bcb Mon Sep 17 00:00:00 2001 From: cnauroth Date: Wed, 30 Sep 2015 16:06:34 -0700 Subject: [PATCH] HDFS-9175. Change scope of 'AccessTokenProvider.getAccessToken()' and 'CredentialBasedAccessTokenProvider.getCredential()' abstract methods to public. Contributed by Santhosh Nayak. (cherry picked from commit c7e03c3a6cf8ccd73a1734a1d19bd8d753b2974c) --- .../apache/hadoop/hdfs/web/oauth2/AccessTokenProvider.java | 2 +- .../hdfs/web/oauth2/CredentialBasedAccessTokenProvider.java | 2 +- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/AccessTokenProvider.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/AccessTokenProvider.java index 99e153d7b3a..3189f940198 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/AccessTokenProvider.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/AccessTokenProvider.java @@ -42,7 +42,7 @@ public abstract class AccessTokenProvider implements Configurable { * * @return Access token to be added to connection header. */ - abstract String getAccessToken() throws IOException; + public abstract String getAccessToken() throws IOException; /** * Return the conf. diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/CredentialBasedAccessTokenProvider.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/CredentialBasedAccessTokenProvider.java index c058e05b93e..625d9359e29 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/CredentialBasedAccessTokenProvider.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/CredentialBasedAccessTokenProvider.java @@ -75,7 +75,7 @@ public abstract class CredentialBasedAccessTokenProvider this.timer = new AccessTokenTimer(timer); } - abstract String getCredential(); + public abstract String getCredential(); @Override public void setConf(Configuration conf) { diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index ba399acafeb..05ce9496883 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -658,6 +658,10 @@ Release 2.8.0 - UNRELEASED HDFS-8971. Remove guards when calling LOG.debug() and LOG.trace() in client package. (Mingliang Liu via wheat9) + HDFS-9175. Change scope of 'AccessTokenProvider.getAccessToken()' and + 'CredentialBasedAccessTokenProvider.getCredential()' abstract methods to + public (Santhosh Nayak via cnauroth) + OPTIMIZATIONS HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than