aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigory Reznikov <gritukan@nebius.com>2024-04-03 18:09:05 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-04-03 18:24:38 +0300
commit49c8adfea0ac4deb66d6e8263886f3ccbea5fc25 (patch)
treed73817d72d00a20eb64558acaac2b50c285d0e1d
parentfd4631e50edb09447b281ba36725fb0985ff185a (diff)
downloadydb-49c8adfea0ac4deb66d6e8263886f3ccbea5fc25.tar.gz
Fix address resolver configuration
No description --- ffe4810fe89b2172e8730dcf902efd8767bc3868 Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/501
-rw-r--r--yt/yt/core/net/address.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/yt/yt/core/net/address.cpp b/yt/yt/core/net/address.cpp
index 756be2a889..e06ae312ff 100644
--- a/yt/yt/core/net/address.cpp
+++ b/yt/yt/core/net/address.cpp
@@ -928,7 +928,6 @@ public:
/*logger*/ {},
DnsProfiler.WithPrefix("/resolve_cache"))
{
- SetDnsResolver(CreateAresDnsResolver(config));
Configure(std::move(config));
}
@@ -984,6 +983,9 @@ public:
{
Config_ = std::move(config);
+ SetDnsResolver(CreateAresDnsResolver(Config_));
+ TAsyncExpiringCache::Reconfigure(Config_);
+
if (Config_->LocalHostNameOverride) {
WriteLocalHostName(*Config_->LocalHostNameOverride);
YT_LOG_INFO("Localhost name configured via config override (LocalHostName: %v)",