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

TxnHandler should know if operation is using dynamic partitions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.3.0, 2.1.0
    • None
    • Transactions
    • None

    Description

      TxnHandler.checkLock() see more comments around "isPartOfDynamicPartitionInsert". If TxnHandler knew whether it is being called as part of an op running with dynamic partitions, it could be more efficient. In that case we don't have to write to TXN_COMPONENTS at all during lock acquisition. Conversely, if not running with DynPart then, we can kill current txn on lock grant rather than wait until commit time.

      if addDynamicPartitions() also knew about DynPart it could eliminate the Delete from Txn_components... statement

      This is an important perf optimization when it allows us to detect that concurrent txns will have a WW conflict early

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ekoifman Eugene Koifman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: