Skip to content

Commit

Permalink
Merge d01edea into ef7e2a9
Browse files Browse the repository at this point in the history
  • Loading branch information
nshestakov authored Aug 13, 2024
2 parents ef7e2a9 + d01edea commit 49a55cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ydb/core/persqueue/read_balancer__balancing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ void TPartitionFamily::AfterRelease() {
Partitions.clear();
Partitions.insert(Partitions.end(), RootPartitions.begin(), RootPartitions.end());

LockedPartitions.clear();

ClassifyPartitions();
UpdatePartitionMapping(Partitions);
// After reducing the number of partitions in the family, the list of reading sessions that can read this family may expand.
Expand Down Expand Up @@ -1783,10 +1785,9 @@ void TBalancer::Handle(TEvPersQueue::TEvGetReadSessionsInfo::TPtr& ev, const TAc
pi->SetPartition(partitionId);

auto* family = consumer->FindFamily(partitionId);
if (family && family->LockedPartitions.contains(partitionId)) {
if (family && family->Session && family->LockedPartitions.contains(partitionId)) {
auto* session = family->Session;

Y_ABORT_UNLESS(session != nullptr);
pi->SetClientNode(session->ClientNode);
pi->SetProxyNodeId(session->ProxyNodeId);
pi->SetSession(session->SessionName);
Expand Down

0 comments on commit 49a55cc

Please sign in to comment.