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

TxnHandler.timeOutTxns only times out some of the expired transactions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0, 1.0.0, 1.1.0
    • 1.3.0, 2.0.0
    • Transactions
    • None

    Description

            for (int i = 0; i < 20 && rs.next(); i++) deadTxns.add(rs.getLong(1));
            // We don't care whether all of the transactions get deleted or not,
            // if some didn't it most likely means someone else deleted them in the interum
            if (deadTxns.size() > 0) abortTxns(dbConn, deadTxns);
      

      While it makes sense to limit the number of transactions aborted in one pass (since this get's translated to an IN clause) we should still make sure all are timed out. Also, 20 seems pretty small as a batch size.

      Attachments

        1. HIVE-10521.patch
          5 kB
          Alan Gates
        2. HIVE-10521.4.patch
          7 kB
          Alan Gates
        3. HIVE-10521.3.patch
          7 kB
          Alan Gates
        4. HIVE-10521.2.patch
          3 kB
          Alan Gates

        Activity

          People

            gates Alan Gates
            gates Alan Gates
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: