Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/5236#discussion_r27515677
--- Diff: core/src/main/scala/org/apache/spark/util/MetadataCleaner.scala
---
@@ -76,7 +76,7 @@ private[spark] object MetadataCleanerType extends
Enumeration {
// initialization of StreamingContext. It's okay for users trying to
configure stuff themselves.
private[spark] object MetadataCleaner {
def getDelaySeconds(conf: SparkConf): Int = {
- conf.getInt("spark.cleaner.ttl", -1)
+ Utils.timeStringAsS(conf.get("spark.cleaner.ttl", "-1s")).toInt
--- End diff --
`-1s` looks really weird. Instead, I'd to:
conf.getOption("spark.cleaner.ttl").map(Utils.timeStringAsS).getOrElse(-1)
---
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]