aboutsummaryrefslogtreecommitdiffstats
path: root/yt
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-01-27 14:17:58 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-01-27 14:39:18 +0300
commit7f6f523e137dfc8834ad898175bffa90f7614c06 (patch)
tree46ed3de80a89a313dd0fc452b56fe4a9571dfbaf /yt
parentdbe0a2136c5f26060cb19a426c7cf798aad8e423 (diff)
downloadydb-7f6f523e137dfc8834ad898175bffa90f7614c06.tar.gz
Intermediate changes
commit_hash:df0d17fde1f1ff10acdac83a961dc82a9ffe3106
Diffstat (limited to 'yt')
-rw-r--r--yt/yt/library/program/helpers.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/yt/yt/library/program/helpers.cpp b/yt/yt/library/program/helpers.cpp
index af2f2de4e6..d53aa477d0 100644
--- a/yt/yt/library/program/helpers.cpp
+++ b/yt/yt/library/program/helpers.cpp
@@ -5,6 +5,8 @@
#include <yt/yt/core/logging/log_manager.h>
+#include <yt/yt/core/net/address.h>
+
namespace NYT {
////////////////////////////////////////////////////////////////////////////////
@@ -15,6 +17,11 @@ void ConfigureSingletons(const TSingletonsConfigPtr& config)
// TODO(babenko): move to server program base
NLogging::TLogManager::Get()->EnableReopenOnSighup();
+
+ // By default, server components must have a reasonable FQDN.
+ // Failure to do so may result in issues like YT-4561.
+ // TODO(babenko): move to server program base
+ NNet::TAddressResolver::Get()->EnsureLocalHostName();
}
////////////////////////////////////////////////////////////////////////////////