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

Make metastore client thread safe in DbTxnManager

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0, 2.1.0
    • 1.3.0, 2.1.0
    • Transactions
    • None

    Description

      The fact that multiple threads sharing the same metastore client which is used for RPC to Thrift is not thread safe.

      Race condition can happen when one sees "out of sequence response" error message from Thrift server. That means the response from the Thrift server is for a different request (by a different thread).

      Solution will be to synchronize methods from the client side.

      Attachments

        1. HIVE-13753.1.patch
          3 kB
          Wei Zheng
        2. HIVE-13753.2.patch
          3 kB
          Wei Zheng
        3. HIVE-13753.3.patch
          3 kB
          Wei Zheng

        Activity

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

          People

            wzheng Wei Zheng Assign to me
            wzheng Wei Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment