Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/14065#discussion_r71046990
--- Diff:
yarn/src/main/scala/org/apache/spark/deploy/yarn/security/AMDelegationTokenRenewer.scala
---
@@ -69,6 +71,9 @@ private[yarn] class AMDelegationTokenRenewer(
private val freshHadoopConf =
hadoopUtil.getConfBypassingFSCache(hadoopConf, new
Path(credentialsFile).toUri.getScheme)
+ @volatile private var timeOfNextRenewal =
+ sparkConf.get(CREDENTIALS_RENEWAL_TIME).getOrElse(Long.MaxValue)
--- End diff --
From my understanding you should never get to this code when
`CREDENTIALS_RENEWAL_TIME` is not set, so you should use `.get` to force and
exception in case the config is not set.
If indeed that situation can occur and you really need a default value, it
should be declared in the constant itself and not here where it's used.
---
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]