hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ning Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-2174) unit tests fail consistently when run according to instructions on "hive how to contribute" page.
Date Thu, 19 May 2011 23:45:47 GMT

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

Ning Zhang commented on HIVE-2174:
----------------------------------

Yes, that's a documentation bug. We should always run 'ant package' before running tests or
anything. ant package will download some necessary ivy packages and put necessary jar files
under build/ directory. For the particular error, I think it is because the derby.jar is not
present in the build/ directory without 'ant package'. 

A fix to the code would be to make 'ant test' dependent on 'package'. But the downside is
that each time your run some test it calls 'package', which is not necessary for the 2nd time.


> 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
>            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

Mime
View raw message