You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/06/24 07:33:00 UTC
[jira] [Assigned] (SPARK-31843) DAGSchedulerSuite: For the pattern
of complete + assert, extract the general method
[ https://issues.apache.org/jira/browse/SPARK-31843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-31843:
------------------------------------
Assignee: Apache Spark
> DAGSchedulerSuite: For the pattern of complete + assert, extract the general method
> -----------------------------------------------------------------------------------
>
> Key: SPARK-31843
> URL: https://issues.apache.org/jira/browse/SPARK-31843
> Project: Spark
> Issue Type: Sub-task
> Components: Spark Core
> Affects Versions: 3.1.0
> Reporter: jiaan.geng
> Assignee: Apache Spark
> Priority: Major
>
> DAGSchedulerSuite exists many test case(e.g. run trivial job/run trivial job w/ dependency/cache location preferences w/ dependency) contains the pattern of complete + assert, such as:
> {code:java}
> test("run trivial job") {
> submit(new MyRDD(sc, 1, Nil), Array(0))
> complete(taskSets(0), List((Success, 42)))
> assert(results === Map(0 -> 42))
> assertDataStructuresEmpty()
> }
> {code}
> We should extract the general method like checkAnswer(job, expected)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org