Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more cleanup
  • Loading branch information
ArtRand committed Oct 31, 2017
commit f93c5513178628d6e7c33bd6cc941407484299fb
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, val rpcEnv: Rp
}

case UpdateDelegationTokens(newDelegationTokens) =>
// Update the driver's delegation tokens in case new executors are added later.
if (renewableDelegationTokens.isDefined) {
// Update the driver's delegation tokens in case new executors are added later.
renewableDelegationTokens = Some(newDelegationTokens)
executorDataMap.values.foreach { ed =>
ed.executorEndpoint.send(UpdateDelegationTokens(newDelegationTokens))
}
} else {
logWarning("Attempted to broadcast credentials when the credential manager " +
logWarning("Attempted to update and broadcast credentials when the credential manager " +
"was not defined")
}
}
Expand Down