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

Make DbTxnManager use Metastore client consistently with callers

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment