Executes function f
under transaction protection.
Executes function f
under transaction protection.
Following is the lifecycle of the Transaction here:
validTxns
) at that point.
3. Acquire Locks
4. validTxns
could have changed at this point due to
transactions getting committed between Step 2 and 3 above.
Abort the transaction if it happened and Retry from step 1.
5. Execute f
6. End the transactionNote, if transaction was already existing for this thread, it will be respected.
Code Block to be executed in transaction
Wrapper over HiveAcidTxn which ensures running operations within transaction boundary
This wrapper can be used just once for running an operation. That operation is not allowed to recursively call this again