Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21637 Synchronized metastore cache
  3. HIVE-24796

[HS2] Enhance DriverTxnHandler.isValidTxnListState logic to include tableId comparison

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • HiveServer2
    • None

    Description

      In HS2, after query compilation phase, we acquire lock in DriverTxnHandler.

      isValidTxnListState and later ensure there are no conflicting transactions by using driverContext.getTxnManager().getLatestTxnIdInConflict(); . This doesn't work well, if there are external entities that drop and recreate the table with the same name. So, we should also make sure the tableId itself is not changed, after lock has been acquired. This Jira is to enhance the DriverTxnHandler.isValidTxnListState logic to include tableId comparison. 

      Attachments

        Activity

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

          People

            kishendas Kishen Das Assign to me
            kishendas Kishen Das
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment