hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-23349) ACID: Concurrent MERGE INSERT operations produce duplicates
Date Mon, 04 May 2020 19:30:00 GMT

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

Hive QA commented on HIVE-23349:
--------------------------------



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

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

{color:red}ERROR:{color} -1 due to 9 failed/errored test(s), 17207 tests executed
*Failed tests:*
{noformat}
org.apache.hive.jdbc.TestNewGetSplitsFormat.testComplexQuery (batchId=214)
org.apache.hive.jdbc.TestNewGetSplitsFormat.testDataTypes (batchId=214)
org.apache.hive.jdbc.TestNewGetSplitsFormat.testEscapedStrings (batchId=214)
org.apache.hive.jdbc.TestNewGetSplitsFormat.testInvalidReferenceCountScenario (batchId=214)
org.apache.hive.jdbc.TestNewGetSplitsFormat.testKillQuery (batchId=214)
org.apache.hive.jdbc.TestNewGetSplitsFormat.testLlapInputFormatEndToEnd (batchId=214)
org.apache.hive.jdbc.TestNewGetSplitsFormat.testLlapInputFormatEndToEndWithMultipleBatches
(batchId=214)
org.apache.hive.jdbc.TestNewGetSplitsFormat.testMultipleBatchesOfComplexTypes (batchId=214)
org.apache.hive.jdbc.TestNewGetSplitsFormat.testNonAsciiStrings (batchId=214)
{noformat}

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

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
Tests exited with: TestsFailedException: 9 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 13002014 - PreCommit-HIVE-Build

> ACID: Concurrent MERGE INSERT operations produce duplicates
> -----------------------------------------------------------
>
>                 Key: HIVE-23349
>                 URL: https://issues.apache.org/jira/browse/HIVE-23349
>             Project: Hive
>          Issue Type: Bug
>          Components: Transactions
>            Reporter: Denys Kuzmenko
>            Assignee: Denys Kuzmenko
>            Priority: Major
>         Attachments: HIVE-23349.1.patch
>
>
> 2 concurrent MERGE INSERT operations generate duplicates due to lack of locking. 
> MERGE INSERT is treated as regular INSERT, it acquires SHARED_READ lock that doesn't
prevent other INSERTs. We should use EXCLUSIVE lock here or EXCL_WRITE if hive.txn.write.xlock=false;
> {code}
> create table target (a int, b int) stored as orc TBLPROPERTIES ('transactional'='true')");
> insert into target values (1,2), (3,4)
> create table source (a int, b int)
> {code}
> execute in parallel:
> {code}
> insert into source values (5,6), (7,8)
> {code}



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

Mime
View raw message