[ 
https://issues.apache.org/jira/browse/HIVE-23630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128554#comment-17128554
 ] 

Hive QA commented on HIVE-23630:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/13005116/HIVE-23630.1.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:green}SUCCESS:{color} +1 due to 17108 tests passed

Test results: 
https://builds.apache.org/job/PreCommit-HIVE-Build/22783/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/22783/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-22783/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}

This message is automatically generated.

ATTACHMENT ID: 13005116 - PreCommit-HIVE-Build

> TestTxnHandler#allocateNextWriteIdRetriesAfterDetectingConflictingConcurrentInsert
>  is unstable
> ----------------------------------------------------------------------------------------------
>
>                 Key: HIVE-23630
>                 URL: https://issues.apache.org/jira/browse/HIVE-23630
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Zoltan Haindrich
>            Assignee: Marton Bod
>            Priority: Major
>         Attachments: HIVE-23630.1.patch
>
>
> I think I've seen this exception but it seems to be coming from this testcase 
> more frequently
> {code}
> java.lang.RuntimeException: MetaException(message:Unable to update 
> transaction database 
> org.apache.derby.shared.common.error.DerbySQLIntegrityConstraintViolationException:
>  The statement was aborted because it would have caused a duplicate key value 
> in a unique or primary key constraint or unique index identified by 
> 'NEXT_WRITE_ID_IDX' defined on 'NEXT_WRITE_ID'.
>  at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown 
> Source)
>  at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
>  at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown 
> Source)
>  at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown 
> Source)
>  at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
>  at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
>  at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
>  at 
> org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown 
> Source)
>  at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
>  at 
> com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44)
>  at 
> com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java)
>  at 
> org.apache.hadoop.hive.metastore.txn.TxnHandler.allocateTableWriteIds(TxnHandler.java:2074)
>  at 
> org.apache.hadoop.hive.metastore.txn.TestTxnHandler.lambda$allocateNextWriteIdRetriesAfterDetectingConflictingConcurrentInsert$1(TestTxnHandler.java:1780)
>  at 
> java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
>  at 
> java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596)
>  at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
>  at 
> java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
>  at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
>  at 
> java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
> Caused by: ERROR 23505: The statement was aborted because it would have 
> caused a duplicate key value in a unique or primary key constraint or unique 
> index identified by 'NEXT_WRITE_ID_IDX' defined on 'NEXT_WRITE_ID'.
>  at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
>  at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
>  at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown 
> Source)
>  at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
>  at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
>  at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
>  at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
>  at 
> org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown 
> Source)
>  at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
>  at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown 
> Source)
>  at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
>  ... 13 more
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to