hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Vary (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-16152) TestBeeLineDriver logging improvements
Date Tue, 14 Mar 2017 14:02:41 GMT

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

Peter Vary commented on HIVE-16152:
-----------------------------------

The changed output:
- diff problem:
{code}
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed
in 8.0
Running org.apache.hadoop.hive.cli.TestBeeLineDriver
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 13.999 sec <<< FAILURE!
- in org.apache.hadoop.hive.cli.TestBeeLineDriver
testCliDriver[drop_with_concurrency](org.apache.hadoop.hive.cli.TestBeeLineDriver)  Time elapsed:
2.223 sec  <<< FAILURE!
java.lang.AssertionError: Client result comparison failed with error code = 1 while executing
fname=drop_with_concurrency
3c3
< Change!!! No rows affected 
---
> No rows affected 
{code}
- Missing out file:
{code}
testCliDriver[escape_comments](org.apache.hadoop.hive.cli.TestBeeLineDriver)  Time elapsed:
2.703 sec  <<< ERROR!
java.lang.Exception: Exception running or analyzing the results of the query file: org.apache.hive.beeline.qfile.QFile@4df7d9ee
The following files can help you identifying the problem:
 - Query file: /Users/petervary/dev/upstream/hive/ql/src/test/queries/clientpositive/escape_comments.q
 - Raw output file: /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/escape_comments.q.out.raw
 - Filtered output file: /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/escape_comments.q.out
 - Expected output file: /Users/petervary/dev/upstream/hive/ql/src/test/results/clientpositive/beeline/escape_comments.q.out
 - Client log file: /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/escape_comments.q.beeline
 - Client log files before the test: /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/escape_comments.q.out.before
 - Client log files after the test: /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/escape_comments.q.out.after
 - Hiveserver2 log file: ./itests/qtest/target/tmp/hive.log

	at org.apache.hadoop.hive.cli.control.CoreBeeLineDriver.runTest(CoreBeeLineDriver.java:173)
	at org.apache.hadoop.hive.cli.control.CoreBeeLineDriver.runTest(CoreBeeLineDriver.java:188)
	at org.apache.hadoop.hive.cli.control.CliAdapter.runTest(CliAdapter.java:104)
	at org.apache.hadoop.hive.cli.TestBeeLineDriver.testCliDriver(TestBeeLineDriver.java:59)
[..]
Caused by: java.io.IOException: Expected results file does not exist: /Users/petervary/dev/upstream/hive/ql/src/test/results/clientpositive/beeline/escape_comments.q.out
	at org.apache.hive.beeline.qfile.QFile.compareResults(QFile.java:111)
	at org.apache.hadoop.hive.cli.control.CoreBeeLineDriver.runTest(CoreBeeLineDriver.java:156)
	... 39 more
{code}
- Query file problem:
{code}
testCliDriver[drop_with_concurrency](org.apache.hadoop.hive.cli.TestBeeLineDriver)  Time elapsed:
0.522 sec  <<< ERROR!
java.sql.SQLException: Error executing SQL command: !run /Users/petervary/dev/upstream/hive/ql/src/test/queries/clientpositive/drop_with_concurrency.q
	at org.apache.hive.beeline.qfile.QFileBeeLineClient.execute(QFileBeeLineClient.java:64)
	at org.apache.hive.beeline.qfile.QFileBeeLineClient.execute(QFileBeeLineClient.java:93)
	at org.apache.hadoop.hive.cli.control.CoreBeeLineDriver.runTest(CoreBeeLineDriver.java:144)
{code}
- Init file problem:
{code}
org.apache.hadoop.hive.cli.TestBeeLineDriver  Time elapsed: 8.093 sec  <<< ERROR!
java.sql.SQLException: Error running infra script: /Users/petervary/dev/upstream/hive/data/scripts/q_test_init_src.sql
Check the following logs for details:
 - /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/init.beeline
 - /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/init.raw
	at org.apache.hadoop.hive.cli.control.CoreBeeLineDriver.runInfraScript(CoreBeeLineDriver.java:121)
	at org.apache.hadoop.hive.cli.control.CoreBeeLineDriver.beforeClass(CoreBeeLineDriver.java:105)
	at org.apache.hadoop.hive.cli.control.CliAdapter$1$1.evaluate(CliAdapter.java:71)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.sql.SQLException: Error executing SQL command: !run /Users/petervary/dev/upstream/hive/data/scripts/q_test_init_src.sql
	at org.apache.hive.beeline.qfile.QFileBeeLineClient.execute(QFileBeeLineClient.java:64)
	at org.apache.hadoop.hive.cli.control.CoreBeeLineDriver.runInfraScript(CoreBeeLineDriver.java:112)
	... 11 more
{code}
- Exception in the wild :)
{code}
testCliDriver[drop_with_concurrency](org.apache.hadoop.hive.cli.TestBeeLineDriver)  Time elapsed:
2.284 sec  <<< ERROR!
java.lang.Exception: Exception running or analyzing the results of the query file: org.apache.hive.beeline.qfile.QFile@685d7ba5
The following files can help you identifying the problem:
 - Query file: /Users/petervary/dev/upstream/hive/ql/src/test/queries/clientpositive/drop_with_concurrency.q
 - Raw output file: /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/drop_with_concurrency.q.out.raw
 - Filtered output file: /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/drop_with_concurrency.q.out
 - Expected output file: /Users/petervary/dev/upstream/hive/ql/src/test/results/clientpositive/beeline/drop_with_concurrency.q.out
 - Client log file: /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/drop_with_concurrency.q.beeline
 - Client log files before the test: /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/drop_with_concurrency.q.out.before
 - Client log files after the test: /Users/petervary/dev/upstream/hive/itests/qtest/target/qfile-results/beelinepositive/drop_with_concurrency.q.out.after
 - Hiveserver2 log file: ./itests/qtest/target/tmp/hive.log

	at org.apache.hadoop.hive.cli.control.CoreBeeLineDriver.runTest(CoreBeeLineDriver.java:173)
	at org.apache.hadoop.hive.cli.control.CoreBeeLineDriver.runTest(CoreBeeLineDriver.java:188)
	at org.apache.hadoop.hive.cli.control.CliAdapter.runTest(CliAdapter.java:104)
	at org.apache.hadoop.hive.cli.TestBeeLineDriver.testCliDriver(TestBeeLineDriver.java:59)
[..]
Caused by: java.io.IOException: In the wild
	at org.apache.hive.beeline.qfile.QFile.filterOutput(QFile.java:107)
	at org.apache.hadoop.hive.cli.control.CoreBeeLineDriver.runTest(CoreBeeLineDriver.java:150)
	... 39 more
{code}

> TestBeeLineDriver logging improvements
> --------------------------------------
>
>                 Key: HIVE-16152
>                 URL: https://issues.apache.org/jira/browse/HIVE-16152
>             Project: Hive
>          Issue Type: Improvement
>          Components: Testing Infrastructure
>    Affects Versions: 2.2.0
>            Reporter: Peter Vary
>            Assignee: Peter Vary
>
> During the review of HIVE-16127 we agreed, that it would be great to have improved logging
and error messages during the TestBeeLineDriver run.



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

Mime
View raw message