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

Carl Steinbach commented on HIVE-2174:
--------------------------------------

If the "test" target has a dependency on "package", then this dependency should 
be made explicit in build.xml. right now "test" indirectly depends on "jar", 
which is why running 'ant test -Dtestcase=TestCliDriver 
-Dqfile=bucketmapjoin1.q" fails.

Also, instead of modifying the "test" target dependencies, I think we should 
instead try to adhere to ant conventions and instead modify the test.classpath 
so that it will work after running the "jar" target.
 

> unit tests fail consistently when run according to instructions on "hive how 
> to contribute" page.
> -------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-2174
>                 URL: https://issues.apache.org/jira/browse/HIVE-2174
>             Project: Hive
>          Issue Type: Bug
>          Components: Build Infrastructure, Testing Infrastructure
>    Affects Versions: 0.7.1, 0.8.0
>            Reporter: Patrick Hunt
>            Assignee: Patrick Hunt
>            Priority: Critical
>
> The unit tests fail consistently when run according to the doc on hive how to 
> contribute page. Specifically if you:
> 1) checkout the code afresh (or 'git clean -xdf' - basically be sure to start 
> with a _very_ clean slate)
> 2) ant clean test tar -logfile ant.log
> the tests will fail (you can run just bucketmapjoin1.q instead of all the 
> tests, it exhibits this behavior). However if you instead do the following 
> 2) ant clean package test tar -logfile ant.log
> the tests pass (notice the addition to package to the targets).
> I've tried this on 5 different systems (mix of linux 32/64 bit) and the 
> result is consistent.
> Running
> ant clean test -Dtestcase=TestCliDriver -Dqfile=bucketmapjoin1.q
> I see the following reason for failure
> {quote}
>     [junit] 743c743
>     [junit] <                     numRows 0
>     [junit] ---
>     [junit] >                     numRows 464
>     [junit] 773c773
>     [junit] <               numRows 0
>     [junit] ---
>     [junit] >               numRows 464
>     [junit] 793c793
>     [junit] <                 numRows 0
>     [junit] ---
>     [junit] >                 numRows 464
> {quote}
> which leads me to believe it's a metastore issue (statistics?)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to