Skip to content

Commit 64a7975

Browse files
committed
fix tests behaviour
1 parent 70f668e commit 64a7975

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ydb/core/cms/console/configs_dispatcher.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,15 @@ class TConfigurationResult
776776

777777
void TConfigsDispatcher::UpdateCandidateStartupConfig(TEvConsole::TEvConfigSubscriptionNotification::TPtr &ev)
778778
try {
779+
if (!RecordedInitialConfiguratorDeps) {
780+
CandidateStartupConfig = {};
781+
StartupConfigProcessError = true;
782+
StartupConfigProcessDiff = false;
783+
StartupConfigInfo = "Startup params not recorded. Corresponding functionality won't work.";
784+
*StartupConfigChanged = 0;
785+
return;
786+
}
787+
779788
auto &rec = ev->Get()->Record;
780789

781790
auto dcClient = std::make_unique<TDynConfigClientMock>();

ydb/core/config/init/init.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ struct TConfigsDispatcherInitInfo {
225225
TMap<TString, TString> Labels;
226226
std::variant<std::monostate, TDenyList, TAllowList> ItemsServeRules;
227227
std::optional<TDebugInfo> DebugInfo;
228-
std::shared_ptr<NConfig::TRecordedInitialConfiguratorDeps> RecordedInitialConfiguratorDeps;
228+
std::shared_ptr<NConfig::TRecordedInitialConfiguratorDeps> RecordedInitialConfiguratorDeps = nullptr;
229229
std::vector<TString> Args;
230230
};
231231

0 commit comments

Comments
 (0)