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

Make DbTxnManager use Metastore client consistently with callers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: Transactions
    • Labels:
      None
    • Target Version/s:

      Description

      Currently it caches IMetastoreClient on init() but the same connection is indirectly saved using ThreadLocal (since Hive.get() uses ThreadLocal).
      So it may cause something other than DbTxnManager to use the same connection. It needs to use the same Metastore client as the caller

        Attachments

        1. HIVE-15950.01.patch
          16 kB
          Eugene Koifman
        2. HIVE-15950.02.patch
          16 kB
          Eugene Koifman

          Issue Links

            Activity

              People

              • Assignee:
                ekoifman Eugene Koifman
                Reporter:
                ekoifman Eugene Koifman
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: