Skip to content

Use UserPool for pqv0 actors #8316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ydb/services/deprecated/persqueue_v0/grpc_pq_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ void TPQReadService::TSession::SendEvent(IEventBase* ev) {
void TPQReadService::TSession::CreateActor(std::unique_ptr<NPersQueue::TTopicsListController>&& topicsHandler) {
auto classifier = Proxy->GetClassifier();

ActorId = Proxy->ActorSystem->Register(
new TReadSessionActor(this, *topicsHandler, Cookie, SchemeCache, NewSchemeCache, Counters,
classifier ? classifier->ClassifyAddress(GetPeerName())
: "unknown"));
auto* actor = new TReadSessionActor(this, *topicsHandler, Cookie, SchemeCache, NewSchemeCache, Counters,
classifier ? classifier->ClassifyAddress(GetPeerName()) : "unknown");
ui32 poolId = Proxy->ActorSystem->AppData<::NKikimr::TAppData>()->UserPoolId;
ActorId = Proxy->ActorSystem->Register(actor, TMailboxType::HTSwap, poolId);
}


Expand Down
9 changes: 4 additions & 5 deletions ydb/services/deprecated/persqueue_v0/grpc_pq_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,10 @@ bool TPQWriteServiceImpl::TSession::CreateActor(const TString &localCluster) {
}

auto classifier = Proxy->GetClassifier();
ActorId = Proxy->ActorSystem->Register(
new TWriteSessionActor(this, Cookie, SchemeCache, Counters, localCluster,
classifier ? classifier->ClassifyAddress(GetPeerName())
: "unknown"), TMailboxType::Simple, 0
);
auto* actor = new TWriteSessionActor(this, Cookie, SchemeCache, Counters, localCluster,
classifier ? classifier->ClassifyAddress(GetPeerName()) : "unknown");
ui32 poolId = Proxy->ActorSystem->AppData<::NKikimr::TAppData>()->UserPoolId;
ActorId = Proxy->ActorSystem->Register(actor, TMailboxType::HTSwap, poolId);
return true;
}

Expand Down
Loading