Skip to content

fix(datastore): avoid default-host DNS lookup and fix toBuilder transport/channel state - #15412

Closed
jinseopkim0 wants to merge 2 commits into
mainfrom
fix/datastore-universe-domain-followups
Closed

jinseopkim0 wants to merge 2 commits into
mainfrom
fix/datastore-universe-domain-followups

Conversation

@jinseopkim0

Copy link
Copy Markdown
Contributor

b/588887355

Avoid DNS lookups for default Datastore hosts in DatastoreUtils.isLocalHost() and reset transport-defaulted host and auto-generated channelProvider state during DatastoreOptions.toBuilder() mutations.

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request introduces tracking for custom hosts and channel providers in DatastoreOptions to ensure proper endpoint resolution when switching transport options or updating configurations like the universe domain. It also refactors host validation by introducing a centralized isDefaultHost helper in DatastoreUtils and improving isLocalHost to support various loopback formats. The feedback suggests using case-insensitive comparisons (equalsIgnoreCase) in isDefaultHost to robustly handle hostnames with mixed casing.

@jinseopkim0

Copy link
Copy Markdown
Contributor Author

Split into 3 smaller PRs: #15413, #15414, and #15415.

@jinseopkim0 jinseopkim0 closed this Dec 2, 2026
@jinseopkim0
jinseopkim0 deleted the fix/datastore-universe-domain-followups branch December 2, 2026 23:57
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.

1 participant