Skip to content

feat: Add PSC DNS and Global Write Endpoint support to Python Connector - #1446

Open
hessjcg wants to merge 1 commit into
mainfrom
psc-dns-support
Open

feat: Add PSC DNS and Global Write Endpoint support to Python Connector#1446
hessjcg wants to merge 1 commit into
mainfrom
psc-dns-support

Conversation

@hessjcg

@hessjcg hessjcg commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

This PR adds PSC DNS support to the Python connector, including recent fixes for error handling:

  • Update is_instance_dns_name regex to match /.sql(-\w+)?.goog$/ and exclude /.global.sql(-\w+)?.goog$/
  • Use specific error types/codes instead of checking error message strings for CNAME loops
  • Disable periodic resolution for immutable instance DNS names
  • Distinguish transient vs non-transient errors in monitored cache

@hessjcg
hessjcg requested a review from a team as a code owner July 27, 2026 17:23
- Implement transient vs non-transient error detection in MonitoredCache.
- Detect immutable instance DNS names using the corrected regex.
- Avoid checking error message strings by using custom exception type (DnsLoopError).

Address review comments:
- kgala2: 'Should we have a try catch block of this sort to have a graceful shut in case of transient failures?'
- hessjcg: 'Use an error code. Don'\''t check error message strings.'
- hessjcg: 'The correct logic for detecting an immutable instance dns name: IF name matches /\.sql(-\w+)?\.goog$/ AND name does not match /\.global\.sql(-\w+)?\.goog$/'
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