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.
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.Closes #1098