Skip to content

fix(storage): resolve GrpcStorageOptions default host from the configured universe domain - #15238

Open
nidhiii-27 wants to merge 2 commits into
fix/storage-universe-domain-envfrom
fix/storage-grpc-universe-domain
Open

nidhiii-27 wants to merge 2 commits into
fix/storage-universe-domain-envfrom
fix/storage-grpc-universe-domain

Conversation

@nidhiii-27

@nidhiii-27 nidhiii-27 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

GrpcStorageOptions derives its default host and the StorageSettings universe domain from the universe domain resolved in StorageOptions, as HttpStorageOptions does. Custom hosts set with setHost() are used as set. GrpcStorageUniverseDomainTest covers host and channel settings.

@nidhiii-27 nidhiii-27 added ai-generated Pull Request generated by AI storage-bug-immunity labels Nov 25, 2026

@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 updates GrpcStorageOptions to correctly resolve and propagate the configured universe domain when setting up storage settings and hosts, and adds a comprehensive test suite in GrpcStorageUniverseDomainTest to verify these behaviors. Feedback on the changes suggests wrapping the spawned Process in the test probe in a try-finally block to prevent potential process leaks, and avoiding wrapping the in-memory ByteArrayOutputStream in a try-with-resources block since its close operation is a no-op.

…ured universe domain

GrpcStorageOptions derives its default host and the StorageSettings universe domain from the universe domain resolved in StorageOptions, as HttpStorageOptions does. Custom hosts set with setHost() are used as set. GrpcStorageUniverseDomainTest covers host and channel settings.
@nidhiii-27
nidhiii-27 force-pushed the fix/storage-universe-domain-env branch from 6c01bec to fa26520 Compare November 27, 2026 06:51
@nidhiii-27
nidhiii-27 force-pushed the fix/storage-grpc-universe-domain branch from bd534de to 540748d Compare November 27, 2026 06:51
@nidhiii-27 nidhiii-27 changed the title fix(storage): make GrpcStorageOptions universe domain resolution consistent with EndpointContext fix(storage): resolve GrpcStorageOptions default host from the configured universe domain Nov 27, 2026
@nidhiii-27
nidhiii-27 marked this pull request as ready for review November 27, 2026 06:52
@nidhiii-27
nidhiii-27 requested review from a team as code owners November 27, 2026 06:52
GrpcStorageOptions.Builder.build() resolves the storage host before constructing GrpcStorageOptions when no host is set manually, and re-resolves after construction only when a manually set host equals the default host literal. Custom host preservation and explicit universe-domain precedence remain unchanged. Added assertions for custom-host toBuilder() preservation and explicit universe-domain precedence in GrpcStorageUniverseDomainTest.

[Generated-by: AI]

This branch has not been deployed

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

Labels

ai-generated Pull Request generated by AI storage-bug-immunity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants