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 cedf1a741ab..e62953e552c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1003,6 +1003,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