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

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

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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
          Thejas Nair
        6. HIVE-9642.5.patch
          15 kB
          Daniel Dai
        7. HIVE-9642.6.patch
          8 kB
          Daniel Dai
        8. HIVE-9642.7.patch
          16 kB
          Daniel Dai

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            daijy Daniel Dai Assign to me
            xiaobingo Xiaobing Zhou

            Dates

              Created:
              Updated:

              Slack

                Issue deployment