Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9574

Add new methods in AbstractDelegationTokenSecretManager for restoring RMDelegationTokens on RMRestart

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0-beta
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      we're considering to add the following methods in AbstractDelegationTokenSecretManager for restoring RMDelegationTokens, these methods can also possibly be reused by hdfsDelegationTokenSecretManager, see YARN-638

      protected void storeNewMasterKey(DelegationKey key) throws IOException

      { return; }
      protected void removeStoredMasterKey(DelegationKey key) { return; }

      protected void storeNewToken(TokenIdent ident, long renewDate)

      { return; }
      protected void removeStoredToken(TokenIdent ident) throws IOException {

      }
      protected void updateStoredToken(TokenIdent ident, long renewDate) { return; }

      Also move addPersistedDelegationToken in hdfs.DelegationTokenSecretManager, to AbstractDelegationTokenSecretManager

        Attachments

        1. HADOOP-9574.1.patch
          8 kB
          Jian He
        2. HADOOP-9574.2.patch
          12 kB
          Jian He
        3. HADOOP-9574.fixtest.patch
          1 kB
          Jian He

          Issue Links

            Activity

              People

              • Assignee:
                jianhe Jian He
                Reporter:
                jianhe Jian He
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: