You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Jimmy Xiang (JIRA)" <ji...@apache.org> on 2015/09/24 00:12:04 UTC

[jira] [Created] (HIVE-11939) TxnDbUtil should turn off jdbc auto commit

Jimmy Xiang created HIVE-11939:
----------------------------------

             Summary: TxnDbUtil should turn off jdbc auto commit
                 Key: HIVE-11939
                 URL: https://issues.apache.org/jira/browse/HIVE-11939
             Project: Hive
          Issue Type: Bug
            Reporter: Jimmy Xiang
            Assignee: Jimmy Xiang
            Priority: Minor


TxnDbUtil uses jdbc transactions, but doesn't turn off auto commit. So some TestStreaming tests are flaky. For example,
{noformat}
testTransactionBatchAbortAndCommit(org.apache.hive.hcatalog.streaming.TestStreaming)  Time elapsed: 0.011 sec  <<< ERROR!
java.sql.SQLException: Table/View 'TXNS' already exists in Schema 'APP'.
	at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
	at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.duplicateDescriptorException(Unknown Source)
	at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.addDescriptor(Unknown Source)
	at org.apache.derby.impl.sql.execute.CreateTableConstantAction.executeConstantAction(Unknown Source)
	at org.apache.derby.impl.sql.execute.MiscResultSet.open(Unknown Source)
	at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
	at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
	at org.apache.hadoop.hive.metastore.txn.TxnDbUtil.prepDb(TxnDbUtil.java:72)
	at org.apache.hadoop.hive.metastore.txn.TxnDbUtil.prepDb(TxnDbUtil.java:131)
	at org.apache.hive.hcatalog.streaming.TestStreaming.<init>(TestStreaming.java:160)

{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)