You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/07/26 14:55:00 UTC

[jira] [Resolved] (SPARK-32442) Fix TaskSetManagerSuite by hiding `org.apache.spark.FakeSchedulerBackend`

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

Dongjoon Hyun resolved SPARK-32442.
-----------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

Issue resolved by pull request 29240
[https://github.com/apache/spark/pull/29240]

> Fix TaskSetManagerSuite by hiding `org.apache.spark.FakeSchedulerBackend`
> -------------------------------------------------------------------------
>
>                 Key: SPARK-32442
>                 URL: https://issues.apache.org/jira/browse/SPARK-32442
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core, Tests
>    Affects Versions: 3.1.0
>            Reporter: Dongjoon Hyun
>            Assignee: Dongjoon Hyun
>            Priority: Major
>             Fix For: 3.1.0
>
>
> There exists two FakeSchedulerBackend.
> {code}
> $ git grep "class FakeSchedulerBackend"
> core/src/test/scala/org/apache/spark/HeartbeatReceiverSuite.scala:private class FakeSchedulerBackend(
> core/src/test/scala/org/apache/spark/scheduler/TaskSchedulerImplSuite.scala:class FakeSchedulerBackend extends SchedulerBackend {
> {code}
> Although `TaskSetManagerSuite` is inside `org.apache.spark.scheduler` package, `import org.apache.spark._` makes Scala 2.13 confused and causes 4 UT failures.
> {code}
> $ build/mvn test -pl core --am -Pscala-2.13 -Dtest=none -DwildcardSuites=org.apache.spark.scheduler.TaskSetManagerSuite
> ...
> Tests: succeeded 48, failed 4, canceled 0, ignored 0, pending 0
> *** 4 TESTS FAILED ***
> {code}
> This issue aims to fix that by hiding that.
> {code}
> import org.apache.spark.{FakeSchedulerBackend => _, _}
> {code}



--
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