Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
Description
This would work for unit-testing, but would need to be fixed for production.
HiveTxnManager txnManager = SessionState.get().getTxnMgr(); if (txnManager.isTxnOpen()) { mmWriteId = txnManager.getCurrentTxnId(); } else { mmWriteId = txnManager.openTxn(new Context(conf), conf.getUser()); txnManager.commitTxn(); }
Attachments
Issue Links
- duplicates
-
HIVE-17647 DDLTask.generateAddMmTasks(Table tbl) and other random code should not start transactions
- Closed