Skip to content
Closed
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ private[deploy] class HadoopFSDelegationTokenProvider
val tokenKind = token.getKind.toString
val interval = newExpiration - getIssueDate(tokenKind, identifier)
logInfo(s"Renewal interval is $interval for token $tokenKind")
// The token here is only used to obtain renewal intervals. We should cancel it in
// a timely manner to avoid causing additional pressure on the server.
token.cancel(hadoopConf)
interval
}.toOption
}
Expand Down