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

Alisha Prabhu commented on HIVE-19780:
--------------------------------------

At line no. 195 of TestTxnNoBuckets.java, the values for the parameter a and b 
in the below code obtained from "myctas2" table differ on different 
environments.

{code:java}
rs = runStatementOnDriver("select ROW__ID, a, b, INPUT__FILE__NAME from myctas2 
order by ROW__ID");
    String expected2[][] = {
        {"{\"writeid\":1,\"bucketid\":536870912,\"rowid\":0}\t1\t2", 
"warehouse/myctas2/delta_0000001_0000001_0000/bucket_00000"},
        {"{\"writeid\":1,\"bucketid\":536936448,\"rowid\":0}\t3\t4", 
"warehouse/myctas2/delta_0000001_0000001_0000/bucket_00001"}
    };
        checkExpected(rs, expected2, "Unexpected row count after ctas from acid 
table");
{code}
The above patch works when applied to certain environments locally. Again, 
without which the test case results in the above mentioned error.
Looking forward to a possible solution for the issue.
Thank you.

> Test failure : org.apache.hadoop.hive.ql.TestTxnNoBuckets fails with 
> java.lang.AssertionError
> ---------------------------------------------------------------------------------------------
>
>                 Key: HIVE-19780
>                 URL: https://issues.apache.org/jira/browse/HIVE-19780
>             Project: Hive
>          Issue Type: Bug
>         Environment: uname -a
> Linux pts00607-vm1 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:05:18 UTC 
> 2016 ppc64le ppc64le ppc64le GNU/Linux
>            Reporter: Alisha Prabhu
>            Priority: Major
>              Labels: pp64le, x86_64
>         Attachments: HIVE-19780.1.patch
>
>
> Maven command used is mvn -Dtest=TestTxnNoBuckets#testCTAS test
> Error:
> {code:java}
> [INFO] Running org.apache.hadoop.hive.ql.TestTxnNoBuckets
> [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
> 34.582 s <<< FAILURE! - in org.apache.hadoop.hive.ql.TestTxnNoBuckets
> [ERROR] testCTAS(org.apache.hadoop.hive.ql.TestTxnNoBuckets)  Time elapsed: 
> 31.64 s  <<< FAILURE!
> java.lang.AssertionError: Actual line (data) 0 data: 
> {"writeid":1,"bucketid":536870912,"rowid":0}       3       4       
> file:/var/lib/jenkins/hive/ql/target/tmp/org.apache.hadoop.hive.ql.TestTxnNoBuckets-1528085280454/warehouse/myctas2/delta_0000001_0000001_0000/bucket_00000
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.assertTrue(Assert.java:41)
>         at 
> org.apache.hadoop.hive.ql.TxnCommandsBaseForTests.checkExpected(TxnCommandsBaseForTests.java:228)
> {code}
> org.apache.hadoop.hive.ql.TestTxnNoBucketsVectorized.testCTAS refers to the 
> same test case.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to