Description
In the initial implementation of HADOOP-10770, the authToken is updated with delegation tokens during {{KMSClientProvider#addDelegationTokens }} in the following line:
Token<?> token = authUrl.getDelegationToken(url, authToken, renewer);
HADOOP-11482 is a good fix to handle UGI issue, but has a side effect in the following code:
public Token<?> run() throws Exception { // Not using the cached token here.. Creating a new token here // everytime. return authUrl.getDelegationToken(url, new DelegationTokenAuthenticatedURL.Token(), renewer, doAsUser); }
IIUC, we should do setDelegationToken on the authToken here to cache it.