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

Hive metastore client retries don't happen consistently for all api calls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.0.0
    • None
    • None
    • None

    Description

      When org.apache.thrift.transport.TTransportException is thrown for issues like socket timeout, the retry via RetryingMetaStoreClient happens only in certain cases.
      Retry happens for the getDatabase call in but not for getAllDatabases().
      The reason is RetryingMetaStoreClient checks for TTransportException being the cause for InvocationTargetException. But in case of some calls such as getAllDatabases in HiveMetastoreClient, all exceptions get wrapped in a MetaException. We should remove this unnecessary wrapping of exceptions for certain functions in HMC.

      Attachments

        1. HIVE-9642.1.patch
          1 kB
          Xiaobing Zhou
        2. HIVE-9642.2.patch
          3 kB
          Xiaobing Zhou
        3. HIVE-9642.3.patch
          15 kB
          Daniel Dai
        4. HIVE-9642.4.patch
          15 kB
          Daniel Dai
        5. HIVE-9642.5.patch
          15 kB
          Daniel Dai
        6. HIVE-9642.5.patch
          15 kB
          Thejas Nair
        7. HIVE-9642.6.patch
          8 kB
          Daniel Dai
        8. HIVE-9642.7.patch
          16 kB
          Daniel Dai

        Issue Links

          Activity

            People

              daijy Daniel Dai
              xiaobingo Xiaobing Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: