diff options
Diffstat (limited to 'yt')
-rw-r--r-- | yt/yt/library/program/helpers.cpp | 7 |
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(); } //////////////////////////////////////////////////////////////////////////////// |