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

Transaction lock retry logic results in infinite loop

    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

            People

              ekoifman Eugene Koifman
              appcrawler Steve Howard
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: