Github user squito commented on a diff in the pull request:
https://github.com/apache/spark/pull/6935#discussion_r46623637
--- Diff:
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala ---
@@ -610,11 +701,38 @@ private[history] class FsHistoryProvider(conf:
SparkConf, clock: Clock)
* directory, `None` is returned, indicating that there isn't an event
log at that location.
*/
private def getModificationTime(fsEntry: FileStatus): Option[Long] = {
+ getStatusAttribute(fsEntry, (f => f.getModificationTime()))
+ }
+
+ /**
+ * Get the size of the log, or `None` if there isn't one in the child
+ * directory of a legacy log entry
+ * @param fsEntry file status of a path
+ * @return the log size
+ */
+ private def getLogSize(fsEntry: FileStatus): Option[Long] = {
+ if (isLegacyLogDirectory(fsEntry)) None else Some(fsEntry.getLen)
+// getStatusAttribute(fsEntry, (f => f.getLen()))
--- End diff --
looks like the doc is for the commented out version
---
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]