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

Make metastore client thread safe in DbTxnManager

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 2.1.0
    • Fix Version/s: 1.3.0, 2.1.0
    • Component/s: Transactions
    • Labels:
      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.3.patch
          3 kB
          Wei Zheng
        2. HIVE-13753.2.patch
          3 kB
          Wei Zheng
        3. HIVE-13753.1.patch
          3 kB
          Wei Zheng

          Activity

            People

            • Assignee:
              wzheng Wei Zheng
              Reporter:
              wzheng Wei Zheng
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: