Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22033

HiveServer2: fix delegation token renewal

    XMLWordPrintableJSON

Details

    Description

      Hello, the issue we faced (and a proposal for a fix) in our hive instances is depicted at
      https://github.com/criteo-forks/hive/pull/24

      Reading the master branch of the project
      https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/security/TokenStoreDelegationTokenSecretManager.java#L147
      I think the same behavior is replicated there.

      Long story short, TokenStoreDelegationTokenSecretManager.renewToken, does not update the expiry date of a given token (as it does not get the updated DelegationTokenInformation from super.currentTokens).

      This makes any call to renewToken ineffective (the expiry date of the token is not postponed).

      Attachments

        1. HIVE-22033.2.patch
          1 kB
          Szehon Ho
        2. HIVE-22033.patch
          1 kB
          Ion Alberdi

        Issue Links

          Activity

            People

              yetanotherion Ion Alberdi
              yetanotherion Ion Alberdi
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 10m
                  10m