Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### New Features and Improvements

* Increase async cache stale period from 3 to 5 minutes to cover the maximum monthly downtime of a 99.99% uptime SLA.

### Bug Fixes

### Security Vulnerabilities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ private enum TokenState {
}

private static final Logger logger = LoggerFactory.getLogger(CachedTokenSource.class);
// Default duration before expiry to consider a token as 'stale'.
private static final Duration DEFAULT_STALE_DURATION = Duration.ofMinutes(3);
// Default duration before expiry to consider a token as 'stale'. This value is chosen to cover
// the maximum monthly downtime allowed by a 99.99% uptime SLA (~4.38 minutes).
private static final Duration DEFAULT_STALE_DURATION = Duration.ofMinutes(5);
// Default additional buffer before expiry to consider a token as expired.
// This is 40 seconds by default since Azure Databricks rejects tokens that are within 30 seconds
// of expiry.
Expand Down
Loading