@@ -165,7 +165,7 @@ void TPartitionFamily::Release(const TActorContext& ctx, ETargetStatus targetSta
165
165
166
166
LOG_INFO_S (ctx, NKikimrServices::PERSQUEUE_READ_BALANCER,
167
167
GetPrefix () << " release partitions [" << JoinRange (" , " , LockedPartitions.begin (), LockedPartitions.end ())
168
- << " ]. Target status " << targetStatus);
168
+ << " ] pipe " << Session-> Pipe << " . Target status " << targetStatus);
169
169
170
170
Status = EStatus::Releasing;
171
171
TargetStatus = targetStatus;
@@ -533,6 +533,7 @@ std::unique_ptr<TEvPersQueue::TEvReleasePartition> TPartitionFamily::MakeEvRelea
533
533
r.SetPath (TopicPath ());
534
534
r.SetGeneration (TabletGeneration ());
535
535
r.SetClientId (Session->ClientId );
536
+ r.SetCount (1 );
536
537
r.SetGroup (partitionId + 1 );
537
538
ActorIdToProto (Session->Pipe , r.MutablePipeClient ());
538
539
@@ -1661,20 +1662,20 @@ void TBalancer::Handle(TEvTabletPipe::TEvServerDisconnected::TPtr& ev, const TAc
1661
1662
1662
1663
LOG_INFO_S (ctx, NKikimrServices::PERSQUEUE_READ_BALANCER,
1663
1664
GetPrefix () << " pipe " << ev->Get ()->ClientId << " disconnected; active server actors: "
1664
- << (it != Sessions. end () ? it ->second ->ServerActors : - 1 ) );
1665
+ << it ->second ->ServerActors );
1665
1666
1666
1667
auto & session = it->second ;
1667
1668
if (--(session->ServerActors ) > 0 ) {
1668
1669
return ;
1669
1670
}
1670
1671
1671
1672
if (!session->SessionName .empty ()) {
1672
- LOG_NOTICE_S (ctx, NKikimrServices::PERSQUEUE_READ_BALANCER,
1673
- GetPrefix () << " pipe " << ev->Get ()->ClientId << " client "
1674
- << session->ClientId << " disconnected session " << session->SessionName );
1675
-
1676
1673
auto * consumer = GetConsumer (session->ClientId );
1677
1674
if (consumer) {
1675
+ LOG_NOTICE_S (ctx, NKikimrServices::PERSQUEUE_READ_BALANCER,
1676
+ GetPrefix () << " pipe " << ev->Get ()->ClientId << " client "
1677
+ << session->ClientId << " disconnected session " << session->SessionName );
1678
+
1678
1679
consumer->UnregisterReadingSession (session.get (), ctx);
1679
1680
1680
1681
if (consumer->Sessions .empty ()) {
0 commit comments