Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
The problem of cancelDelegationToken is a bit different from that of renewDelegationToken. Say when the cancel op is almost done (AbstractDelegationTokenSecretManager removes the DT from its cache, and RMStateStore removes it form FS/ZK), and just before returning response to the client, RM failover. The new AbstractDelegationTokenSecretManager cache will not have the DT, and the following cancelDelegationToken will fail at
if (info == null) { throw new InvalidToken("Token not found"); }
in AbstractDelegationTokenSecretManager#cancelToken