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

    https://github.com/apache/spark/pull/19338#discussion_r141226456
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskSetBlacklist.scala ---
    @@ -61,6 +61,16 @@ private[scheduler] class TaskSetBlacklist(val conf: 
SparkConf, val stageId: Int,
       private val blacklistedExecs = new HashSet[String]()
       private val blacklistedNodes = new HashSet[String]()
     
    +  private var latestFailureReason: String = null
    +
    +  /**
    +   * Get the most recent failure reason of this TaskSet.
    +   * @return
    +   */
    +  def getLatestFailureReason: String = {
    --- End diff --
    
    @squito yes from scope level it is fine. My thought is that this exposes 
the class member to other class unnecessarily. Yeah it is not a big deal, just 
my personal preference.


---

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

Reply via email to