Skip to content

Commit 05d5257

Browse files
committed
Fixed typo
1 parent 8e3888b commit 05d5257

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

ydb/core/kqp/common/events/workload_service.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ struct TEvCleanupRequest : public NActors::TEventLocal<TEvCleanupRequest, TKqpWo
5757
, PoolId(poolId)
5858
, Duration(duration)
5959
, CpuConsumed(cpuConsumed)
60-
, sendResponseOnNotFound(sendResponseOnNotFound)
60+
, SendResponseOnNotFound(sendResponseOnNotFound)
6161
{}
6262

6363
const TString Database;
6464
const TString SessionId;
6565
const TString PoolId;
6666
const TDuration Duration;
6767
const TDuration CpuConsumed;
68-
const bool sendResponseOnNotFound;
68+
bool SendResponseOnNotFound = true;
6969
};
7070

7171
struct TEvCleanupResponse : public NActors::TEventLocal<TEvCleanupResponse, TKqpWorkloadServiceEvents::EvCleanupResponse> {

ydb/core/kqp/workload_service/actors/pool_handlers_acors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class TPoolHandlerActorBase : public TActor<TDerived> {
219219

220220
TRequest* request = GetRequestSafe(sessionId);
221221
if (!request) {
222-
if (ev->Get()->sendResponseOnNotFound) {
222+
if (ev->Get()->SendResponseOnNotFound) {
223223
this->Send(workerActorId, new TEvCleanupResponse(Ydb::StatusIds::SUCCESS));
224224
}
225225
return;

ydb/core/kqp/workload_service/kqp_workload_service.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ class TKqpWorkloadService : public TActorBootstrapped<TKqpWorkloadService> {
263263
databaseState->RemovePendingSession(event->Get()->SessionId, [this](TEvCleanupRequest::TPtr event) {
264264
ReplyCleanupError(event->Sender, Ydb::StatusIds::NOT_FOUND, TStringBuilder() << "Pool " << event->Get()->PoolId << " not found");
265265
});
266-
databaseState->PendingSessionIds.erase(event->Get()->SessionId);
267266
ReplyContinueError(event->Sender, ev->Get()->Status, ev->Get()->Issues);
268267
return;
269268
}

ydb/core/kqp/workload_service/kqp_workload_service_impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,11 @@ struct TPoolState {
161161
}
162162

163163
void DoCleanupRequest(TEvCleanupRequest::TPtr event) {
164+
event->Get()->SendResponseOnNotFound = false;
164165
for (const auto& poolHandler : PreviousPoolHandlers) {
165166
ActorContext.Send(poolHandler, new TEvCleanupRequest(
166167
event->Get()->Database, event->Get()->SessionId, event->Get()->PoolId,
167-
event->Get()->Duration, event->Get()->CpuConsumed, false
168+
event->Get()->Duration, event->Get()->CpuConsumed, event->Get()->SendResponseOnNotFound
168169
));
169170
}
170171
ActorContext.Send(event->Forward(PoolHandler));

0 commit comments

Comments
 (0)