Hadoop Common
  1. Hadoop Common
  2. HADOOP-9574

Add new methods in AbstractDelegationTokenSecretManager for restoring RMDelegationTokens on RMRestart

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

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

        Issue Links

          Activity

          Jian He created issue -
          Jian He made changes -
          Field Original Value New Value
          Summary Adding new methods in AbstractDelegationTokenSecretManager for restoring RMDelegationTokens on RMRestart Add new methods in AbstractDelegationTokenSecretManager for restoring RMDelegationTokens on RMRestart
          Jian He made changes -
          Link This issue is depended upon by YARN-638 [ YARN-638 ]
          Jian He made changes -
          Link This issue is related to YARN-697 [ YARN-697 ]
          Jian He made changes -
          Assignee Jian He [ jianhe ]
          Jian He made changes -
          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;
            }
          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
          Jian He made changes -
          Attachment HADOOP-9574.1.patch [ 12583877 ]
          Jian He made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Jian He made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Jian He made changes -
          Attachment HADOOP-9574.2.patch [ 12585265 ]
          Jian He made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Vinod Kumar Vavilapalli made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 2.0.5-beta [ 12324030 ]
          Resolution Fixed [ 1 ]
          Jian He made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Jian He made changes -
          Attachment HADOOP-9574.fixtest.patch [ 12585356 ]
          Jian He made changes -
          Status Reopened [ 4 ] Patch Available [ 10002 ]
          Vinod Kumar Vavilapalli made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Jason Lowe made changes -
          Link This issue is related to HADOOP-9846 [ HADOOP-9846 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development