client: Disable service config query #342

Merged
fyrchik merged 1 commit from fyrchik/frostfs-sdk-go:disable-service-config into master 2025-03-06 09:24:17 +00:00
Owner

By default, gRPC fetches TXT report while resolving a domain.
0914bba6c5/internal/resolver/dns/dns_resolver.go (L336)

This leads to a hanging dial if DNS is unavailable, even though the host
may be specified in /etc/hosts (hello, localhost!).

Use grpc.WithDisableServiceConfig() to override the default.
This option seems impossible to override with WithGRPCDialOpts(),
but we do not use service config anyway.

Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com

By default, gRPC fetches TXT report while resolving a domain. https://github.com/grpc/grpc-go/blob/0914bba6c5c5a545d34bd11e5dee0bbb8eaadd3f/internal/resolver/dns/dns_resolver.go#L336 This leads to a hanging dial if DNS is unavailable, even though the host may be specified in `/etc/hosts` (hello, localhost!). Use `grpc.WithDisableServiceConfig()` to override the default. This option seems impossible to override with `WithGRPCDialOpts()`, but we do not use service config anyway. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik added 1 commit 2025-03-05 12:08:39 +00:00
client: Disable service config query
Some checks failed
DCO / DCO (pull_request) Failing after 30s
Code generation / Generate proto (pull_request) Successful in 34s
Tests and linters / Tests (pull_request) Successful in 44s
Tests and linters / Lint (pull_request) Successful in 1m30s
eea9678332
By default, gRPC fetches TXT report while resolving a domain.
This leads to a hanging dial if DNS is unavailable, even though the host
may be specified in `/etc/hosts` (hello, localhost!).

This setting seems impossible to override with `WithGRPCDialOpts()`,
but we do not use service config anyway.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
requested reviews from storage-core-committers, storage-core-developers, storage-services-committers, storage-services-developers 2025-03-05 12:08:39 +00:00
fyrchik force-pushed disable-service-config from eea9678332 to c909cf5f6f 2025-03-05 12:09:54 +00:00 Compare
fyrchik force-pushed disable-service-config from c909cf5f6f to 9a5910b841 2025-03-05 12:10:49 +00:00 Compare
acid-ant approved these changes 2025-03-05 12:34:47 +00:00
fyrchik force-pushed disable-service-config from 9a5910b841 to 60d747fcfb 2025-03-05 12:45:22 +00:00 Compare

How does this affect the case when the DNS server is available?

How does this affect the case when the DNS server is available?
elebedeva approved these changes 2025-03-05 20:29:00 +00:00
Author
Owner

How does this affect the case when the DNS server is available?

We don't fetch DNS TXT record and save a round-trip.

>How does this affect the case when the DNS server is available? We don't fetch DNS TXT record and save a round-trip.
dstepanov-yadro approved these changes 2025-03-06 06:57:53 +00:00
fyrchik merged commit 69b0711d12 into master 2025-03-06 09:24:17 +00:00
fyrchik deleted branch disable-service-config 2025-03-06 09:24:23 +00:00
fyrchik referenced this pull request from a commit 2025-03-06 12:14:47 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#342
No description provided.