aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordon-dron <don-dron@yandex-team.com>2024-05-17 21:34:01 +0300
committerdon-dron <don-dron@yandex-team.com>2024-05-17 21:49:40 +0300
commit6bb04f40e291c6fc3ac8e556d561d59eed0a49b9 (patch)
tree4390ccc3ab0005ee178e27399dd86e2a787253ec
parent6ca1d898180d9f6a6b4b08ce72607c3d7971f4e9 (diff)
downloadydb-6bb04f40e291c6fc3ac8e556d561d59eed0a49b9.tar.gz
YT-21558: Allow config unregistered methods
4738445240b36d24604dbf9955309608fc9568df
-rw-r--r--yt/yt/core/rpc/service_detail.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/yt/yt/core/rpc/service_detail.cpp b/yt/yt/core/rpc/service_detail.cpp
index e5b061424fd..0192b7c9129 100644
--- a/yt/yt/core/rpc/service_detail.cpp
+++ b/yt/yt/core/rpc/service_detail.cpp
@@ -2597,7 +2597,16 @@ void TServiceBase::DoConfigure(
// Validate configuration.
for (const auto& [methodName, _] : config->Methods) {
- GetMethodInfoOrThrow(methodName);
+ auto* method = FindMethodInfo(methodName);
+
+ if (!method) {
+ // TODO(don-dron): Split service configs by realmid, for example for DataNodeService and ProxyDataNodeService.
+ YT_LOG_WARNING(
+ "Method is not registered (Service:%v, RealmId:%v, Method: %v)",
+ ServiceId_.ServiceName,
+ ServiceId_.RealmId,
+ methodName);
+ }
}
EnablePerUserProfiling_.store(config->EnablePerUserProfiling.value_or(configDefaults->EnablePerUserProfiling));