diff options
author | dcherednik <dcherednik@ydb.tech> | 2023-12-14 19:40:29 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2023-12-14 20:44:55 +0300 |
commit | f2ec6098ac0ab8fc895c39fd6818cb07eeccaf49 (patch) | |
tree | e05fc78b809c682ee84a97117156e0644e10ec55 | |
parent | 7f3897e948d99ad46654f4c256948296692b45d0 (diff) | |
download | ydb-f2ec6098ac0ab8fc895c39fd6818cb07eeccaf49.tar.gz |
Attempt to fix CloseSessionsWithLoad test. KIKIMR-20405
Do not grab ownership of kikimr in to test execution threads. It cause race during test shutdown.
-rw-r--r-- | ydb/core/kqp/ut/service/kqp_service_ut.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/core/kqp/ut/service/kqp_service_ut.cpp b/ydb/core/kqp/ut/service/kqp_service_ut.cpp index f2b0157cca..1b8f4163b1 100644 --- a/ydb/core/kqp/ut/service/kqp_service_ut.cpp +++ b/ydb/core/kqp/ut/service/kqp_service_ut.cpp @@ -87,7 +87,7 @@ Y_UNIT_TEST_SUITE(KqpService) { } NPar::LocalExecutor().RunAdditionalThreads(SessionsCount + 1); - NPar::LocalExecutor().ExecRange([kikimr, sessions, WaitDuration](int id) mutable { + NPar::LocalExecutor().ExecRange([&kikimr, sessions, WaitDuration](int id) mutable { if (id == (i32)sessions.size()) { Sleep(WaitDuration); Cerr << "start sessions close....." << Endl; @@ -109,7 +109,7 @@ Y_UNIT_TEST_SUITE(KqpService) { do { Sleep(WaitDuration); pendingSessions = counters->GetNamedCounter("name", "table.session.active_count", false)->Val(); - Cerr << "still active sessions ... " << pendingCompilations << Endl; + Cerr << "still active sessions ... " << pendingSessions << Endl; } while (pendingSessions != 0); Sleep(TDuration::Seconds(5)); |