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

Make DbTxnManager use Metastore client consistently with callers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • Transactions
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: