diff options
author | va-kuznecov <va-kuznecov@ydb.tech> | 2023-01-13 17:16:03 +0300 |
---|---|---|
committer | va-kuznecov <va-kuznecov@ydb.tech> | 2023-01-13 17:16:03 +0300 |
commit | ade5487ce6008abe6796ba9b29da4b29d4b4337f (patch) | |
tree | a1b3e75bd43bd00cc1ad573f9a0fea03e59c5ef9 | |
parent | f212af4589ffc574bce23f425639ae0d1e69d862 (diff) | |
download | ydb-ade5487ce6008abe6796ba9b29da4b29d4b4337f.tar.gz |
Fix death process in case of IncreaseSessions
-rw-r--r-- | ydb/core/load_test/kqp.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ydb/core/load_test/kqp.cpp b/ydb/core/load_test/kqp.cpp index 12a788c7f1..f1ac0c8a93 100644 --- a/ydb/core/load_test/kqp.cpp +++ b/ydb/core/load_test/kqp.cpp @@ -337,6 +337,10 @@ public: } void HandleWakeup(const TActorContext& ctx) { + if (ResultsReceived) { + // if death process is started, then brake wakeup circuit + return; + } size_t targetSessions; if (IncreaseSessions) { targetSessions = 1 + NumOfSessions * (TInstant::Now() - Start).Seconds() / DurationSeconds; @@ -458,7 +462,7 @@ private: Total->Add(response->Data); ++ResultsReceived; - if (ResultsReceived == NumOfSessions) { + if (ResultsReceived == Workers.size()) { StartDeathProcess(ctx); } } |