HADOOP-14361. Azure: NativeAzureFileSystem.getDelegationToken() call fails sometimes when invoked concurrently. Contributed by Santhosh G Nayak
This commit is contained in:
parent
5cb6e3e082
commit
eed731496f
@ -2968,7 +2968,7 @@ public synchronized void close() throws IOException {
|
|||||||
* @throws IOException thrown when getting the current user.
|
* @throws IOException thrown when getting the current user.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Token<?> getDelegationToken(final String renewer) throws IOException {
|
public synchronized Token<?> getDelegationToken(final String renewer) throws IOException {
|
||||||
if (kerberosSupportEnabled) {
|
if (kerberosSupportEnabled) {
|
||||||
try {
|
try {
|
||||||
final UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
|
final UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user