Github user squito commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17088#discussion_r106670128
  
    --- Diff: 
core/src/test/scala/org/apache/spark/scheduler/DAGSchedulerSuite.scala ---
    @@ -394,6 +394,68 @@ class DAGSchedulerSuite extends SparkFunSuite with 
LocalSparkContext with Timeou
         assertDataStructuresEmpty()
       }
     
    +  test("All shuffle files should on the slave should be cleaned up when 
slave lost") {
    +    // reset the test context with the right shuffle service config
    +    afterEach()
    +    val conf = new SparkConf()
    +    conf.set("spark.shuffle.service.enabled", "true")
    +    init(conf)
    +    runEvent(ExecutorAdded("exec-hostA1", "hostA"))
    +    runEvent(ExecutorAdded("exec-hostA2", "hostA"))
    +    runEvent(ExecutorAdded("exec-hostB", "hostB"))
    +    val firstRDD = new MyRDD(sc, 3, Nil)
    +    val firstShuffleDep = new ShuffleDependency(firstRDD, new 
HashPartitioner(2))
    +    val firstShuffleId = firstShuffleDep.shuffleId
    +    val shuffleMapRdd = new MyRDD(sc, 3, List(firstShuffleDep))
    --- End diff --
    
    the number of partitions here needs to match the with the number used in 
the partitioner from its dependencies.  Same below.
    
    I know it doesn't matter in this test, but it becomes hard to understand 
what is going on in these tests if they have inconsistencies like this


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to