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

    https://github.com/apache/spark/pull/4830#discussion_r27076115
  
    --- Diff: 
core/src/test/scala/org/apache/spark/ui/jobs/JobProgressListenerSuite.scala ---
    @@ -110,6 +120,23 @@ class JobProgressListenerSuite extends FunSuite with 
LocalSparkContext with Matc
         listener.stageIdToActiveJobIds.size should be (0)
       }
     
    +  test("test clearing of jobGroupToJobIds") {
    +    val conf = new SparkConf()
    +    conf.set("spark.ui.retainedJobs", 5.toString)
    +    val listener = new JobProgressListener(conf)
    +
    +    // Run 50 jobs, each with one stage
    +    for (jobId <- 0 to 50) {
    +      listener.onJobStart(createJobStartEvent(jobId, Seq(0), jobGroup = 
Some(jobId.toString)))
    +      listener.onStageSubmitted(createStageStartEvent(0))
    +      listener.onStageCompleted(createStageEndEvent(0, failed = false))
    +      listener.onJobEnd(createJobEndEvent(jobId, false))
    +    }
    +    assertActiveJobsStateIsEmpty(listener)
    +    //
    --- End diff --
    
    ?


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