Skip to content

fix: new pooled connections created with stale password#1231

Open
karenc-bq wants to merge 1 commit intomainfrom
fix/iam-pool
Open

fix: new pooled connections created with stale password#1231
karenc-bq wants to merge 1 commit intomainfrom
fix/iam-pool

Conversation

@karenc-bq
Copy link
Copy Markdown
Contributor

@karenc-bq karenc-bq commented May 6, 2026

Description

Address the two issues raised in #1230

  1. pg error handler unable to correctly handle auth errors nested in connection errors
  2. pooled connections are created with stale credentials

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@karenc-bq karenc-bq marked this pull request as ready for review May 6, 2026 17:42
error_msg: str = error.args[0]
return any(error_msg.startswith(msg) for msg in self._NETWORK_ERROR_MESSAGES)
is_network_error: bool = any(error_msg.startswith(msg) for msg in self._NETWORK_ERROR_MESSAGES)
# PAM errors may be nested in the connection error, double check here to avoid false positives
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this should say "the connection error messages" or "a connection error"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants