You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Sneha Kanekar (JIRA)" <ji...@apache.org> on 2017/04/06 10:18:41 UTC

[jira] [Comment Edited] (PHOENIX-3769) OnDuplicateKeyIT#testNewAndMultiDifferentUpdateOnSingleColumn fails on ppc64le

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

Sneha Kanekar edited comment on PHOENIX-3769 at 4/6/17 10:18 AM:
-----------------------------------------------------------------

The last UPSERT query in testcase testNewAndMultiDifferentUpdateOnSingleColumn fails. I added a commit statement before this query and the testcase pass. 
{code: borderStyle=solid}
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/OnDuplicateKeyIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OnDuplicateKeyIT.java
index d3cb0af..e5f511a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/OnDuplicateKeyIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OnDuplicateKeyIT.java
@@ -388,6 +388,7 @@ public class OnDuplicateKeyIT extends ParallelStatsDisabledIT {
         conn.createStatement().execute(dml);
         dml = "UPSERT INTO " + tableName + " VALUES('a',0) ON DUPLICATE KEY UPDATE counter1 = counter1 + 2";
         conn.createStatement().execute(dml);
+        conn.commit();
         dml = "UPSERT INTO " + tableName + " VALUES('a',0) ON DUPLICATE KEY UPDATE counter1 = counter1 + 1";
         conn.createStatement().execute(dml);
         conn.commit();
{code}


was (Author: skanekar):
The last UPSERT query in testcase testNewAndMultiDifferentUpdateOnSingleColumn fails. I added a commit statement before this query and the testcase pass. 
{code: borderStyle=solid}
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/OnDuplicateKeyIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OnDuplicateKeyIT.java
index d3cb0af..e5f511a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/OnDuplicateKeyIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OnDuplicateKeyIT.java
@@ -388,6 +388,7 @@ public class OnDuplicateKeyIT extends ParallelStatsDisabledIT {
         conn.createStatement().execute(dml);
         dml = "UPSERT INTO " + tableName + " VALUES('a',0) ON DUPLICATE KEY UPDATE counter1 = counter1 + 2";
         conn.createStatement().execute(dml);
+         conn.commit();
         dml = "UPSERT INTO " + tableName + " VALUES('a',0) ON DUPLICATE KEY UPDATE counter1 = counter1 + 1";
         conn.createStatement().execute(dml);
         conn.commit();
{code}

> OnDuplicateKeyIT#testNewAndMultiDifferentUpdateOnSingleColumn fails on ppc64le
> ------------------------------------------------------------------------------
>
>                 Key: PHOENIX-3769
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3769
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.11.0
>         Environment: $ uname -a
> Linux 6945c232192e 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:42:36 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>            Reporter: Sneha Kanekar
>              Labels: ppc64le
>         Attachments: OnDuplicateKeyIT_Standard_output.txt, TEST-org.apache.phoenix.end2end.OnDuplicateKeyIT.xml
>
>
> The testcase org.apache.phoenix.end2end.OnDuplicateKeyIT.testNewAndMultiDifferentUpdateOnSingleColumn fails consistently on ppc64le architechture. The error message is as follows:
> {code: borderStyle=solid}
> java.lang.ArrayIndexOutOfBoundsException: 179
> 	at org.apache.phoenix.end2end.OnDuplicateKeyIT.testNewAndMultiDifferentUpdateOnSingleColumn(OnDuplicateKeyIT.java:392)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)