Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14535 add insert-only ACID tables to Hive
  3. HIVE-16850

Converting table to insert-only acid may open a txn in an inappropriate place

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Transactions

    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

          Activity

            People

              ekoifman Eugene Koifman
              wzheng Wei Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: