diff options
author | Evgeniy Ivanov <eivanov89@ydb.tech> | 2024-11-21 09:12:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-21 09:12:24 +0100 |
commit | 2c9f3be19551a075654830441d196a20c7e5a3fd (patch) | |
tree | 8a63068146f13e0f96f5b5295cd3064d15eeebe5 | |
parent | 41baaddb6040fedb58166db7d654cfdb3fb36663 (diff) | |
download | ydb-2c9f3be19551a075654830441d196a20c7e5a3fd.tar.gz |
Use tail sends when replying from QP (#11813)
-rw-r--r-- | ydb/core/kqp/proxy_service/kqp_proxy_service.cpp | 2 | ||||
-rw-r--r-- | ydb/core/kqp/session_actor/kqp_session_actor.cpp | 2 | ||||
-rw-r--r-- | ydb/core/kqp/session_actor/kqp_worker_actor.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ydb/core/kqp/proxy_service/kqp_proxy_service.cpp b/ydb/core/kqp/proxy_service/kqp_proxy_service.cpp index c46e8bed14..340cdb4e2c 100644 --- a/ydb/core/kqp/proxy_service/kqp_proxy_service.cpp +++ b/ydb/core/kqp/proxy_service/kqp_proxy_service.cpp @@ -919,7 +919,7 @@ public: 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); diff --git a/ydb/core/kqp/session_actor/kqp_session_actor.cpp b/ydb/core/kqp/session_actor/kqp_session_actor.cpp index 718e9ffbbb..71600ee6db 100644 --- a/ydb/core/kqp/session_actor/kqp_session_actor.cpp +++ b/ydb/core/kqp/session_actor/kqp_session_actor.cpp @@ -2025,7 +2025,7 @@ public: 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()); diff --git a/ydb/core/kqp/session_actor/kqp_worker_actor.cpp b/ydb/core/kqp/session_actor/kqp_worker_actor.cpp index a3d8face05..8f90454c5f 100644 --- a/ydb/core/kqp/session_actor/kqp_worker_actor.cpp +++ b/ydb/core/kqp/session_actor/kqp_worker_actor.cpp @@ -753,7 +753,7 @@ private: 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()); |