Skip to content

Commit

Permalink
Fix missed subscription for non local request cancelation. (ydb-platf…
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherednik authored Dec 19, 2023
1 parent f85c76d commit cbc404b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ydb/core/grpc_services/query/rpc_execute_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class TExecuteQueryRPC : public TActorBootstrapped<TExecuteQueryRPC> {
HFunc(TRpcServices::TEvGrpcNextReply, Handle);
HFunc(NKqp::TEvKqpExecuter::TEvStreamData, Handle);
HFunc(NKqp::TEvKqp::TEvQueryResponse, Handle);
HFunc(NKikimr::NGRpcService::TEvSubscribeGrpcCancel, Handle);
hFunc(NKikimr::NGRpcService::TEvSubscribeGrpcCancel, Handle);
default:
UnexpectedEvent(__func__, ev);
}
Expand Down Expand Up @@ -278,8 +278,9 @@ class TExecuteQueryRPC : public TActorBootstrapped<TExecuteQueryRPC> {
}
}

void Handle(NKikimr::NGRpcService::TEvSubscribeGrpcCancel::TPtr&, const TActorContext&) {
// Ignore event now
void Handle(NKikimr::NGRpcService::TEvSubscribeGrpcCancel::TPtr& ev) {
auto as = TActivationContext::ActorSystem();
PassSubscription(ev->Get(), Request_.get(), as);
}

void Handle(TEvents::TEvWakeup::TPtr& ev, const TActorContext& ctx) {
Expand Down

0 comments on commit cbc404b

Please sign in to comment.