Skip to content

fix: Optimize DNS resolution logic - #1143

Merged
hessjcg merged 2 commits into
mainfrom
psc-dns-error-handling
Aug 12, 2026
Merged

hessjcg merged 2 commits into
mainfrom
psc-dns-error-handling

Conversation

@hessjcg

@hessjcg hessjcg commented Aug 11, 2026

Copy link
Copy Markdown
Member

Updates the instance DNS name regex to the correct permissive format.

@hessjcg
hessjcg marked this pull request as ready for review August 11, 2026 23:46
@hessjcg
hessjcg requested a review from a team as a code owner August 11, 2026 23:46
@hessjcg hessjcg changed the title fix: Update instance DNS regex to correct format fix: Optimize DNS resolution logic Aug 12, 2026
hessjcg added a commit to GoogleCloudPlatform/cloud-sql-nodejs-connector that referenced this pull request Aug 12, 2026
Updates the instance DNS name regex to the correct permissive format.

See GoogleCloudPlatform/cloud-sql-go-connector#1143
@hessjcg
hessjcg merged commit ca3c760 into main Aug 12, 2026
21 checks passed
@hessjcg
hessjcg deleted the psc-dns-error-handling branch August 12, 2026 06:51
hessjcg added a commit to GoogleCloudPlatform/cloud-sql-jdbc-socket-factory that referenced this pull request Aug 12, 2026
This PR addresses code review comments on PSC DNS error handling:

Update IsInstanceDNSName 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

See GoogleCloudPlatform/cloud-sql-go-connector#1143
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