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

Yussuf Shaikh commented on HIVE-16538:
--------------------------------------

In TestExecDriver for each test it fails to compare the result files with 
static files because the content of the result file is double then expected.
On further investigation found that the static initialization block in 
TestExecDriver is executed twice, hence for second run src table is updated 2 
times.

Below are some log statements from hive.log:

2017-04-26T06:34:04,699  INFO \[main\] hive.log: Updated size of table src to 
5812
2017-04-26T06:34:05,188  INFO \[main\] hive.log: Updated size of table src2 to 
5791
2017-04-26T06:34:33,996  INFO \[main\] hive.log: Updated size of table src to 
5812
*2017-04-26T06:34:35,510  INFO \[main\] hive.log: Updated size of table src to 
11624*
2017-04-26T06:34:35,695  INFO \[main\] hive.log: Updated size of table src2 to 
5791
*2017-04-26T06:34:35,934  INFO \[main\] hive.log: Updated size of table src2 to 
11582*

> TestExecDriver fails if run after TestOperators#testScriptOperator
> ------------------------------------------------------------------
>
>                 Key: HIVE-16538
>                 URL: https://issues.apache.org/jira/browse/HIVE-16538
>             Project: Hive
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 3.0.0
>         Environment: # cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=14.04
> DISTRIB_CODENAME=trusty
> DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
> # uname -a
> Linux 3b9700711ca1 3.19.0-37-generic #42-Ubuntu SMP Fri Nov 20 18:22:05 UTC 
> 2015 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Yussuf Shaikh
>            Assignee: Yussuf Shaikh
>            Priority: Minor
>
> Failed tests:
>   TestExecDriver.testMapPlan1:498->fileDiff:182 expected:<false> but 
> was:<true>
>   TestExecDriver.testMapPlan2:506->fileDiff:182 expected:<false> but 
> was:<true>
>   TestExecDriver.testMapRedPlan1:515->fileDiff:182 expected:<false> but 
> was:<true>
>   TestExecDriver.testMapRedPlan2:524->fileDiff:182 expected:<false> but 
> was:<true>
>   TestExecDriver.testMapRedPlan3:533->fileDiff:182 expected:<false> but 
> was:<true>
>   TestExecDriver.testMapRedPlan4:542->fileDiff:182 expected:<false> but 
> was:<true>
>   TestExecDriver.testMapRedPlan5:551->fileDiff:182 expected:<false> but 
> was:<true>
>   TestExecDriver.testMapRedPlan6:560->fileDiff:182 expected:<false> but 
> was:<true>



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

Reply via email to