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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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
          Jianyong Dai
        4. HIVE-9642.4.patch
          15 kB
          Jianyong Dai
        5. HIVE-9642.5.patch
          15 kB
          Jianyong Dai
        6. HIVE-9642.5.patch
          15 kB
          Thejas Nair
        7. HIVE-9642.6.patch
          8 kB
          Jianyong Dai
        8. HIVE-9642.7.patch
          16 kB
          Jianyong Dai

          Issue Links

            Activity

              People

              • Assignee:
                daijy Jianyong Dai
                Reporter:
                xiaobingo Xiaobing Zhou
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: