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

    https://github.com/apache/spark/pull/19920#discussion_r155632345
  
    --- Diff: core/src/main/scala/org/apache/spark/status/api/v1/api.scala ---
    @@ -24,27 +24,32 @@ import 
com.fasterxml.jackson.databind.annotation.JsonDeserialize
     
     import org.apache.spark.JobExecutionStatus
     
    -class ApplicationInfo private[spark](
    -    val id: String,
    -    val name: String,
    -    val coresGranted: Option[Int],
    -    val maxCores: Option[Int],
    -    val coresPerExecutor: Option[Int],
    -    val memoryPerExecutorMB: Option[Int],
    -    val attempts: Seq[ApplicationAttemptInfo])
    +case class ApplicationInfo private[spark](
    +    id: String,
    +    name: String,
    +    coresGranted: Option[Int],
    +    maxCores: Option[Int],
    +    coresPerExecutor: Option[Int],
    +    memoryPerExecutorMB: Option[Int],
    +    attempts: Seq[ApplicationAttemptInfo]) {
    +
    +    def completed: Boolean = {
    --- End diff --
    
    Moved, also had to add it to `HistoryServerSuite`.
    A bit of code duplication, but indeed better than increasing API surface 
area.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to