@@ -554,7 +554,7 @@ class TMonitoringProxy : public TActorBootstrapped<TMonitoringProxy> {
554
554
, TabletID(tabletId)
555
555
, Inflight(inflight)
556
556
{
557
- for (auto & p: Partitions) {
557
+ for (auto & p : Partitions) {
558
558
Results[p.first ].push_back (Sprintf (" Partition %u: NO DATA" , p.first ));
559
559
}
560
560
}
@@ -691,6 +691,10 @@ void TPersQueue::ApplyNewConfigAndReply(const TActorContext& ctx)
691
691
ClearNewConfig ();
692
692
693
693
for (auto & p : Partitions) { // change config for already created partitions
694
+ if (p.first .IsSupportivePartition ()) {
695
+ continue ;
696
+ }
697
+
694
698
ctx.Send (p.second .Actor , new TEvPQ::TEvChangePartitionConfig (TopicConverter, Config, BootstrapConfigTx ? *BootstrapConfigTx : NKikimrPQ::TBootstrapConfig ()));
695
699
}
696
700
ChangePartitionConfigInflight += Partitions.size ();
@@ -1873,13 +1877,19 @@ void TPersQueue::Handle(TEvPersQueue::TEvOffsets::TPtr& ev, const TActorContext&
1873
1877
}
1874
1878
ui32 cnt = 0 ;
1875
1879
for (auto & p : Partitions) {
1876
- cnt += p.second .InitDone ;
1880
+ if (p.first .IsSupportivePartition ()) {
1881
+ continue ;
1882
+ }
1883
+
1884
+ cnt += p.second .InitDone ;
1877
1885
}
1878
1886
TActorId ans = CreateOffsetsProxyActor (TabletID (), ev->Sender , cnt, ctx);
1879
1887
1880
1888
for (auto & p : Partitions) {
1881
- if (!p.second .InitDone )
1889
+ if (!p.second .InitDone || p. first . IsSupportivePartition ()) {
1882
1890
continue ;
1891
+ }
1892
+
1883
1893
THolder<TEvPQ::TEvPartitionOffsets> event = MakeHolder<TEvPQ::TEvPartitionOffsets>(ans, ev->Get ()->Record .HasClientId () ?
1884
1894
ev->Get ()->Record .GetClientId () : " " );
1885
1895
ctx.Send (p.second .Actor , event.Release ());
@@ -1937,15 +1947,20 @@ void TPersQueue::Handle(TEvPersQueue::TEvStatus::TPtr& ev, const TActorContext&
1937
1947
}
1938
1948
1939
1949
ui32 cnt = 0 ;
1940
- for (auto & [_, partitionInfo] : Partitions) {
1941
- cnt += partitionInfo.InitDone ;
1950
+ for (auto & [partitionId, partitionInfo] : Partitions) {
1951
+ if (partitionId.IsSupportivePartition ()) {
1952
+ continue ;
1953
+ }
1954
+
1955
+ cnt += partitionInfo.InitDone ;
1942
1956
}
1943
1957
1944
1958
TActorId ans = CreateStatusProxyActor (TabletID (), ev->Sender , cnt, ev->Cookie , ctx);
1945
1959
for (auto & p : Partitions) {
1946
- if (!p.second .InitDone ) {
1960
+ if (!p.second .InitDone || p. first . IsSupportivePartition () ) {
1947
1961
continue ;
1948
1962
}
1963
+
1949
1964
THolder<TEvPQ::TEvPartitionStatus> event;
1950
1965
if (ev->Get ()->Record .GetConsumers ().empty ()) {
1951
1966
event = MakeHolder<TEvPQ::TEvPartitionStatus>(ans, ev->Get ()->Record .HasClientId () ? ev->Get ()->Record .GetClientId () : " " ,
@@ -4556,7 +4571,11 @@ void TPersQueue::SendProposeTransactionAbort(const TActorId& target,
4556
4571
void TPersQueue::SendEvProposePartitionConfig (const TActorContext& ctx,
4557
4572
TDistributedTransaction& tx)
4558
4573
{
4559
- for (auto & [_, partition] : Partitions) {
4574
+ for (auto & [partitionId, partition] : Partitions) {
4575
+ if (partitionId.IsSupportivePartition ()) {
4576
+ continue ;
4577
+ }
4578
+
4560
4579
auto event = std::make_unique<TEvPQ::TEvProposePartitionConfig>(tx.Step , tx.TxId );
4561
4580
4562
4581
event->TopicConverter = tx.TopicConverter ;
@@ -4567,7 +4586,7 @@ void TPersQueue::SendEvProposePartitionConfig(const TActorContext& ctx,
4567
4586
}
4568
4587
4569
4588
tx.PartitionRepliesCount = 0 ;
4570
- tx.PartitionRepliesExpected = Partitions. size () ;
4589
+ tx.PartitionRepliesExpected = OriginalPartitionsCount ;
4571
4590
}
4572
4591
4573
4592
TActorId TPersQueue::GetPartitionQuoter (const TPartitionId& partition) {
0 commit comments