HADOOP-14361. Azure: NativeAzureFileSystem.getDelegationToken() call fails sometimes when invoked concurrently. Contributed by Santhosh G Nayak
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/eed73149 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/eed73149 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/eed73149 Branch: refs/heads/HDFS-10467 Commit: eed731496f63537350206274af09d2118b116a17 Parents: 5cb6e3e Author: Mingliang Liu <lium...@apache.org> Authored: Wed May 10 15:05:11 2017 -0700 Committer: Mingliang Liu <lium...@apache.org> Committed: Wed May 10 15:05:11 2017 -0700 ---------------------------------------------------------------------- .../java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/eed73149/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java ---------------------------------------------------------------------- diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java index 45c45b1..03a2782 100644 --- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java +++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java @@ -2968,7 +2968,7 @@ public class NativeAzureFileSystem extends FileSystem { * @throws IOException thrown when getting the current user. */ @Override - public Token<?> getDelegationToken(final String renewer) throws IOException { + public synchronized Token<?> getDelegationToken(final String renewer) throws IOException { if (kerberosSupportEnabled) { try { final UserGroupInformation ugi = UserGroupInformation.getCurrentUser(); --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org