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

get_token thrift call fails for DBTokenStore in remote HMS mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0, 2.1.1, 2.2.0
    • 2.4.0, 3.0.0
    • Metastore
    • None

    Description

      The get_token(String tokenIdentifier) HMS thrift API fails when HMS is deployed in remote mode and when there is no token found with that tokenIndentifier. This could happen when an application calls a renewDelegationToken on an expired/cancelled delegation token. The issue is that get_token tries to return a null result values which cannot be done in Thrift. The API call errors out with org.apache.thrift.TApplicationException unknown result exception which is uncaught and HS2 thrift server closes the client transport. So no further calls from that connection can be accepted unless client reconnects to HS2 again.

      Attachments

        1. HIVE-17659.01.patch
          8 kB
          Vihang Karajgaonkar
        2. HIVE-17659.01-branch-2.patch
          7 kB
          Vihang Karajgaonkar
        3. HIVE-17659.02.patch
          8 kB
          Vihang Karajgaonkar
        4. HIVE-17659.02-branch-2.patch
          8 kB
          Vihang Karajgaonkar

        Issue Links

          Activity

            People

              vihangk1 Vihang Karajgaonkar
              vihangk1 Vihang Karajgaonkar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: