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

    https://github.com/apache/spark/pull/6935#discussion_r51447480
  
    --- Diff: 
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala ---
    @@ -666,6 +804,40 @@ private[history] class FsHistoryProvider(conf: 
SparkConf, clock: Clock)
         dfs.setSafeMode(HdfsConstants.SafeModeAction.SAFEMODE_GET)
       }
     
    +  /**
    +   * String description for diagnostics
    +   * @return a summary of the component state
    +   */
    +  override def toString: String = {
    +    val header = s"""
    +      | FsHistoryProvider: logdir=$logDir,
    +      | last scan time=$lastScanTime
    +      | Cached application count =${applications.size}}
    +    """.stripMargin
    +    val sb = new StringBuilder(header)
    +    applications.foreach(entry => sb.append(entry._2).append("\n"))
    +    sb.toString
    +  }
    +
    +  /**
    +   * The update probe of the is the generational counter of attempts:
    +   * if the filesize is less than that of the latest attempt's size, it is 
out of date.
    --- End diff --
    
    also remove the comment on generational counter here.


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