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

Transaction lock retry logic results in infinite loop

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.1
    • 1.3.0
    • HiveServer2, Transactions
    • None

    Description

      We reset the deadlock count to 0 every time the lock() method is called in org.apache.hadoop.hive.metastore.txn.TxnHandler, so the ten count is never reached in checkRetryable().

      We should let checkRetryable handle the deadlock count.

      public LockResponse lock(LockRequest rqst)
      throws NoSuchTxnException, TxnAbortedException, MetaException
      {
      >>> this.deadlockCnt = 0; <<<
      try
      {
      Connection dbConn = null;
      try
      {

      Attachments

        1. HIVE-11934.patch
          10 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
            appcrawler Steve Howard
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment