-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: invalidate cache on bad connection info and IP lookup (#1118)
The Connector caches connection info for future connections and schedules refresh operations, however for unrecoverable errors/state we should invalidate the cache to stop future bad refreshes. We should invalidate the cache on all failed calls to the Cloud SQL Admin APIs, as well as failed IP lookup (preferred IP does not exist). Added a ._remove_cached method to the Connector to facilitate invalidating the cache.
- Loading branch information
1 parent
fe2ccb8
commit 672dc4e
Showing
3 changed files
with
101 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters