Uh oh!
There was an error while loading. Please reload this page.
[SPARK-17778][Tests]Mock SparkContext to reduce memory usage of BlockManagerSuite - #15350
[SPARK-17778][Tests]Mock SparkContext to reduce memory usage of BlockManagerSuite#15350zsxwing wants to merge 2 commits into
Conversation
zsxwing
commented
Oct 4, 2016
/cc @markhamstra could you try this patch, please? |
SparkQA
commented
Oct 4, 2016
Test build #66336 has finished for PR 15350 at commit
|
zsxwing
commented
Oct 4, 2016
retest this please |
SparkQA
commented
Oct 5, 2016
Test build #66342 has finished for PR 15350 at commit
|
| conf.set("spark.driver.port", rpcEnv.address.port.toString) | ||
| sc = new SparkContext("local", "test", conf) | ||
| sc = mock(classOf[SparkContext]) |
There was a problem hiding this comment.
might want to comment on the reason for this change too
There was a problem hiding this comment.
might want to comment on the reason for this change too
Added
srowen
commented
Oct 5, 2016
Does this not defeat some of the purpose of testing, if it isn't using an actual SparkContext? |
andrewor14
commented
Oct 5, 2016
I think that's OK. This is supposed to be a unit test for the BlockManager, not how BlockManager interacts with the rest of the system. LGTM |
zsxwing
commented
Oct 5, 2016
The only reason we need to create a SparkContext is to initialize LiveListenerBus. There was no SparkContext in this file before we added a configuration to LiveListenerBus. |
markhamstra
commented
Oct 5, 2016
@zsxwing |
SparkQA
commented
Oct 5, 2016
Test build #66399 has finished for PR 15350 at commit
|
zsxwing
commented
Oct 5, 2016
Thanks! Merging to master and 2.0 |
…kManagerSuite ## What changes were proposed in this pull request? Mock SparkContext to reduce memory usage of BlockManagerSuite ## How was this patch tested? Jenkins Author: Shixiong Zhu <shixiong@databricks.com> Closes#15350 from zsxwing/SPARK-17778. (cherry picked from commit 221b418) Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
…kManagerSuite ## What changes were proposed in this pull request? Mock SparkContext to reduce memory usage of BlockManagerSuite ## How was this patch tested? Jenkins Author: Shixiong Zhu <shixiong@databricks.com> Closesapache#15350 from zsxwing/SPARK-17778.
What changes were proposed in this pull request?
Mock SparkContext to reduce memory usage of BlockManagerSuite
How was this patch tested?
Jenkins