Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-505 OzoneManager HA
  3. HDDS-1995

Generate renewTime on OMLeader for GetDelegationToken

    XMLWordPrintableJSON

Details

    Description

      Use renewTime generated by OM leader, across quorum of OM's.

       

      Right now each OM generates renew time when updating token in-memory and DB.

      OzoneDelegationTokenSecretManager.java

      public long updateToken(Token<OzoneTokenIdentifier> token,
      OzoneTokenIdentifier ozoneTokenIdentifier) {
      long renewTime =
      ozoneTokenIdentifier.getIssueDate() + getTokenRenewInterval();

       

      If different OM's have different token renew interval set, for the same token we will have different renewal time across a quorum of OM's.

       

      This Jira is to fix this issue.

       

      Attachments

        Issue Links

          Activity

            People

              hanishakoneru Hanisha Koneru
              bharat Bharat Viswanadham
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m