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
4 changes: 3 additions & 1 deletion 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

### Documentation
Expand All @@ -24,4 +26,4 @@
* [Breaking] Remove `PgbouncerSettings` field for [postgres.EndpointSettings](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/postgres#EndpointSettings).
* [Breaking] Remove `PoolerMode` field for [postgres.EndpointSpec](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/postgres#EndpointSpec).
* [Breaking] Remove `PoolerMode` field for [postgres.EndpointStatus](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/postgres#EndpointStatus).
* [Breaking] Remove `PgbouncerSettings` field for [postgres.ProjectDefaultEndpointSettings](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/postgres#ProjectDefaultEndpointSettings).
* [Breaking] Remove `PgbouncerSettings` field for [postgres.ProjectDefaultEndpointSettings](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/postgres#ProjectDefaultEndpointSettings).
8 changes: 3 additions & 5 deletions config/experimental/auth/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import (
"golang.org/x/oauth2"
)

const (
// Default duration for the stale period. The number as been set arbitrarily
// and might be changed in the future.
defaultStaleDuration = 3 * time.Minute
)
// Default duration for the stale period. This value is chosen to cover the
// maximum monthly downtime allowed by a 99.99% uptime SLA (~4.38 minutes).
const defaultStaleDuration = 5 * time.Minute

type Option func(*cachedTokenSource)

Expand Down
Loading