[ https://issues.apache.org/jira/browse/PHOENIX-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16112191#comment-16112191 ]
Sneha Kanekar commented on PHOENIX-3769: ---------------------------------------- {code:borderStyle=solid} [INFO] Running org.apache.phoenix.end2end.OnDuplicateKeyIT [ERROR] Tests run: 45, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 264.123 s <<< FAILURE! - in org.apache.phoenix.end2end.OnDuplicateKeyIT [ERROR] testNewAndMultiDifferentUpdateOnSingleColumn[0](org.apache.phoenix.end2end.OnDuplicateKeyIT) Time elapsed: 2.291 s <<< ERROR! java.lang.ArrayIndexOutOfBoundsException: 182 at org.apache.phoenix.end2end.OnDuplicateKeyIT.testNewAndMultiDifferentUpdateOnSingleColumn(OnDuplicateKeyIT.java:386) [ERROR] testNewAndMultiDifferentUpdateOnSingleColumn[1](org.apache.phoenix.end2end.OnDuplicateKeyIT) Time elapsed: 8.202 s <<< ERROR! java.lang.ArrayIndexOutOfBoundsException: 486 at org.apache.phoenix.end2end.OnDuplicateKeyIT.testNewAndMultiDifferentUpdateOnSingleColumn(OnDuplicateKeyIT.java:386) [ERROR] testNewAndMultiDifferentUpdateOnSingleColumn[2](org.apache.phoenix.end2end.OnDuplicateKeyIT) Time elapsed: 8.207 s <<< ERROR! java.lang.ArrayIndexOutOfBoundsException: 477 at org.apache.phoenix.end2end.OnDuplicateKeyIT.testNewAndMultiDifferentUpdateOnSingleColumn(OnDuplicateKeyIT.java:386) {code} >From the array indexes for which this test is failing, I can see that >ArrayIndexOutOfBounds exception is thrown for a byte array onDupKeyBytes which >is created in file >phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java. The following function combineOnDupKey(in file phoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java) is throwing this exception while accessing array newRow.onDupKeyBytes {code:borderStyle=solid} // Concatenate ON DUPLICATE KEY bytes to allow multiple // increments of the same row in the same commit batch. this.onDupKeyBytes = PhoenixIndexBuilder.combineOnDupKey(this.onDupKeyBytes, newRow.onDupKeyBytes); {code} [~elserj] even I am not sure of why this happens on ppc64le only but I am trying debug it more. If the information above is of any help to you in understanding the root cause then please let me know. > 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, > PHOENIX-3769.patch, 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.4.14#64029)