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

    https://github.com/apache/spark/pull/14065#discussion_r71047265
  
    --- Diff: 
yarn/src/main/scala/org/apache/spark/deploy/yarn/security/AMDelegationTokenRenewer.scala
 ---
    @@ -85,15 +90,14 @@ private[yarn] class AMDelegationTokenRenewer(
          * will synchronously create new ones.
          */
         def scheduleRenewal(runnable: Runnable): Unit = {
    -      val credentials = UserGroupInformation.getCurrentUser.getCredentials
    -      val renewalInterval = hadoopUtil.getTimeFromNowToRenewal(sparkConf, 
0.75, credentials)
           // Run now!
    -      if (renewalInterval <= 0) {
    +      val leftTime = timeOfNextRenewal - System.currentTimeMillis()
    --- End diff --
    
    s/leftTime/remainingTime
    
    The previous name (renewalInterval) was also fine.


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