Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-149 [Umbrella] ResourceManager (RM) Fail-over
  3. YARN-1860

cancelDelegationToken should survive RM failover

    XMLWordPrintableJSON

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

      Attachments

        Activity

          People

            zjshen Zhijie Shen
            zjshen Zhijie Shen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: