You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Cheng Lian (JIRA)" <ji...@apache.org> on 2016/11/07 23:59:58 UTC

[jira] [Updated] (SPARK-18338) ObjectHashAggregateSuite fails under Maven builds

     [ https://issues.apache.org/jira/browse/SPARK-18338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cheng Lian updated SPARK-18338:
-------------------------------
    Description: 
Test case initialization order under Maven and SBT are different. Maven always creates instances of all test cases and then run them all together.

This fails {{ObjectHashAggregateSuite}} because the randomized test cases there register a temporary Hive function right before creating a test case, and can be cleared while initializing other successive test cases.

In SBT, this is fine since the created test case is executed immediately after creating the temporary function. 

To fix this issue, we should put initialization/destruction code into {{beforeAll()}} and {{afterAll()}}.


  was:
Test case initialization order under Maven and SBT are different. Maven always creates instances of all test cases and then run them altogether.

This fails {{ObjectHashAggregateSuite}} because the randomized test cases their registers a temporary Hive function right before creating a test case, and can be cleared while initializing other successive test cases.

In SBT, this is fine since the created test case is executed immediately after creating the temporary function. 

To fix this issue, we should put initialization/destruction code into {{beforeAll()}} and {{afterAll()}}.



> ObjectHashAggregateSuite fails under Maven builds
> -------------------------------------------------
>
>                 Key: SPARK-18338
>                 URL: https://issues.apache.org/jira/browse/SPARK-18338
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Cheng Lian
>            Assignee: Cheng Lian
>              Labels: flaky-test
>
> Test case initialization order under Maven and SBT are different. Maven always creates instances of all test cases and then run them all together.
> This fails {{ObjectHashAggregateSuite}} because the randomized test cases there register a temporary Hive function right before creating a test case, and can be cleared while initializing other successive test cases.
> In SBT, this is fine since the created test case is executed immediately after creating the temporary function. 
> To fix this issue, we should put initialization/destruction code into {{beforeAll()}} and {{afterAll()}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org