Skip to content

Commit

Permalink
Use tail sends when replying from QP (ydb-platform#11813)
Browse files Browse the repository at this point in the history
  • Loading branch information
eivanov89 authored Nov 21, 2024
1 parent 41baadd commit 2c9f3be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ydb/core/kqp/proxy_service/kqp_proxy_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ class TKqpProxyService : public TActorBootstrapped<TKqpProxyService> {
LocalSessions->StartIdleCheck(info, GetSessionIdleDuration());
}

Send(proxyRequest->Sender, ev->Release().Release(), 0, proxyRequest->SenderCookie);
Send<ESendingType::Tail>(proxyRequest->Sender, ev->Release().Release(), 0, proxyRequest->SenderCookie);

if (info && proxyRequest->EventType == TKqpEvents::EvQueryRequest) {
LocalSessions->DetachQueryText(info);
Expand Down
2 changes: 1 addition & 1 deletion ydb/core/kqp/session_actor/kqp_session_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,7 @@ class TKqpSessionActor : public TActorBootstrapped<TKqpSessionActor> {
TlsActivationContext->AsActorContext()
);

Send(QueryState->Sender, QueryResponse.release(), 0, QueryState->ProxyRequestId);
Send<ESendingType::Tail>(QueryState->Sender, QueryResponse.release(), 0, QueryState->ProxyRequestId);
LOG_D("Sent query response back to proxy, proxyRequestId: " << QueryState->ProxyRequestId
<< ", proxyId: " << QueryState->Sender.ToString());

Expand Down
2 changes: 1 addition & 1 deletion ydb/core/kqp/session_actor/kqp_worker_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ class TKqpWorkerActor : public TActorBootstrapped<TKqpWorkerActor> {
response.SetSessionId(SessionId);
}

ctx.Send(QueryState->Sender, responseEv.Release(), 0, QueryState->ProxyRequestId);
ctx.Send<ESendingType::Tail>(QueryState->Sender, responseEv.Release(), 0, QueryState->ProxyRequestId);
LOG_D("Sent query response back to proxy, proxyRequestId: " << QueryState->ProxyRequestId
<< ", proxyId: " << QueryState->Sender.ToString());

Expand Down

0 comments on commit 2c9f3be

Please sign in to comment.