diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 37be06c29..d921beb8e 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -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 @@ -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). \ No newline at end of file +* [Breaking] Remove `PgbouncerSettings` field for [postgres.ProjectDefaultEndpointSettings](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/postgres#ProjectDefaultEndpointSettings). diff --git a/config/experimental/auth/cache.go b/config/experimental/auth/cache.go index 0c856691d..833517cd3 100644 --- a/config/experimental/auth/cache.go +++ b/config/experimental/auth/cache.go @@ -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)