aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhor911 <hor911@yandex-team.ru>2022-02-22 03:00:20 +0300
committerhor911 <hor911@yandex-team.ru>2022-02-22 03:00:20 +0300
commite7f36f26dfc10d644f206651b797a3d1fa6a2995 (patch)
tree268f87ee1c5ea0ae9667802965394278b0801558
parent30ece0199a1c5bc43e8e98f3b908a3a6ac03278c (diff)
downloadydb-e7f36f26dfc10d644f206651b797a3d1fa6a2995.tar.gz
Initialize KQP Shutdown Controler when KQP service active only.YQ-193
ref:859a651a3b669de401073529de77909fd2d2fd0e
-rw-r--r--ydb/core/driver_lib/run/run.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/ydb/core/driver_lib/run/run.cpp b/ydb/core/driver_lib/run/run.cpp
index 039553e4ca..5b9a6a5757 100644
--- a/ydb/core/driver_lib/run/run.cpp
+++ b/ydb/core/driver_lib/run/run.cpp
@@ -475,10 +475,12 @@ void TKikimrRunner::InitializeGracefulShutdown(const TKikimrRunConfig& runConfig
}
void TKikimrRunner::InitializeKqpController(const TKikimrRunConfig& runConfig) {
- auto& tableServiceConfig = runConfig.AppConfig.GetTableServiceConfig();
- auto& featureFlags = runConfig.AppConfig.GetFeatureFlags();
- KqpShutdownController.Reset(new NKqp::TKqpShutdownController(NKqp::MakeKqpProxyID(runConfig.NodeId), tableServiceConfig, featureFlags.GetEnableGracefulShutdown()));
- KqpShutdownController->Initialize(ActorSystem.Get());
+ if (runConfig.ServicesMask.EnableKqp) {
+ auto& tableServiceConfig = runConfig.AppConfig.GetTableServiceConfig();
+ auto& featureFlags = runConfig.AppConfig.GetFeatureFlags();
+ KqpShutdownController.Reset(new NKqp::TKqpShutdownController(NKqp::MakeKqpProxyID(runConfig.NodeId), tableServiceConfig, featureFlags.GetEnableGracefulShutdown()));
+ KqpShutdownController->Initialize(ActorSystem.Get());
+ }
}
void TKikimrRunner::InitializeGRpc(const TKikimrRunConfig& runConfig) {