Uh oh!
There was an error while loading. Please reload this page.
[SPARK-15296][MLlib] Refactor All Java Tests that use SparkSession - #13101
[SPARK-15296][MLlib] Refactor All Java Tests that use SparkSession#13101techaddict wants to merge 33 commits into
Conversation
SparkQA
commented
May 13, 2016
Test build #58581 has finished for PR 13101 at commit
|
SparkQA
commented
May 13, 2016
Test build #58582 has finished for PR 13101 at commit
|
SparkQA
commented
May 18, 2016
Test build #58737 has finished for PR 13101 at commit
|
| customSetUpWithException(); | ||
| } | ||
| public void customSetUp() {} |
There was a problem hiding this comment.
Many of these can be protected so please mark them as such.
andrewor14
commented
May 19, 2016
@techaddict can you run |
| spark.stop(); | ||
| spark = null; | ||
| customTearDown(); |
There was a problem hiding this comment.
Ditto. It is more like a pattern choice. For tearing down, users might want to insert some operations before spark is gone out of scope. So let users choose where to call super.tearDown() seems more reasonable here.
mengxr
commented
May 19, 2016
Great to see 900 lines were removed:) |
| public void setUp() throws IOException { | ||
| spark = SparkSession.builder() | ||
| .master("local") | ||
| .appName("shared-spark-session") |
There was a problem hiding this comment.
This can set the app name to the name of the test class with getClass.getSimpleName
| @Before | ||
| public void setUp() throws IOException { | ||
| spark = SparkSession.builder() | ||
| .master("local") |
There was a problem hiding this comment.
Some tests depend on the default number of partitions. So it would be better to say local[2] instead of local.
SparkQA
commented
May 20, 2016
Test build #58924 has finished for PR 13101 at commit
|
techaddict
commented
May 20, 2016
@mengxr@andrewor14@srowen Addressed all comments. Thanks for reviewing. |
mengxr
commented
May 20, 2016
LGTM pending Jenkins |
SparkQA
commented
May 20, 2016
Test build #58923 has finished for PR 13101 at commit
|
SparkQA
commented
May 20, 2016
Test build #58928 has finished for PR 13101 at commit
|
SparkQA
commented
May 20, 2016
Test build #58929 has finished for PR 13101 at commit
|
mengxr
commented
May 20, 2016
Merged into master and branch-2.0. Thanks! |
## What changes were proposed in this pull request? Refactor All Java Tests that use SparkSession, to extend SharedSparkSesion ## How was this patch tested? Existing Tests Author: Sandeep Singh <sandeep@techaddict.me> Closes#13101 from techaddict/SPARK-15296. (cherry picked from commit 01cf649) Signed-off-by: Xiangrui Meng <meng@databricks.com>
What changes were proposed in this pull request?
Refactor All Java Tests that use SparkSession, to extend SharedSparkSesion
How was this patch tested?
Existing Tests