You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Zhijie Shen (JIRA)" <ji...@apache.org> on 2014/03/21 01:03:43 UTC

[jira] [Created] (YARN-1860) cancelDelegationToken should survive RM failover

Zhijie Shen created YARN-1860:
---------------------------------

             Summary: cancelDelegationToken should survive RM failover
                 Key: YARN-1860
                 URL: https://issues.apache.org/jira/browse/YARN-1860
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Zhijie Shen
            Assignee: Zhijie Shen


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
{code}
    if (info == null) {
      throw new InvalidToken("Token not found");
    }
{code}
in AbstractDelegationTokenSecretManager#cancelToken



--
This message was sent by Atlassian JIRA
(v6.2#6252)