@@ -87,7 +87,7 @@ TString TPartition::LogPrefix() const {
87
87
88
88
bool TPartition::CanWrite () const {
89
89
if (PartitionConfig == nullptr ) {
90
- // Old format without AllPartitions configuration field.
90
+ // Old format without AllPartitions configuration field.
91
91
// It is not split/merge partition.
92
92
return true ;
93
93
}
@@ -273,7 +273,7 @@ ui64 TPartition::ImportantClientsMinOffset() const {
273
273
minOffset = Min<ui64>(minOffset, curOffset);
274
274
}
275
275
276
- return minOffset;
276
+ return minOffset;
277
277
}
278
278
279
279
void TPartition::HandleWakeup (const TActorContext& ctx) {
@@ -552,7 +552,7 @@ void TPartition::InitComplete(const TActorContext& ctx) {
552
552
PartitionCountersLabeled->GetCounters ()[METRIC_INIT_TIME] = InitDuration.MilliSeconds ();
553
553
PartitionCountersLabeled->GetCounters ()[METRIC_LIFE_TIME] = CreationTime.MilliSeconds ();
554
554
PartitionCountersLabeled->GetCounters ()[METRIC_PARTITIONS] = 1 ;
555
- PartitionCountersLabeled->GetCounters ()[METRIC_PARTITIONS_TOTAL] = Config.PartitionIdsSize ();
555
+ PartitionCountersLabeled->GetCounters ()[METRIC_PARTITIONS_TOTAL] = std::max ( Config.PartitionIdsSize (), Config. PartitionsSize () );
556
556
ctx.Send (Tablet, new TEvPQ::TEvPartitionLabeledCounters (Partition, *PartitionCountersLabeled));
557
557
}
558
558
UpdateUserInfoEndOffset (ctx.Now ());
@@ -969,7 +969,7 @@ void TPartition::Handle(TEvPQ::TEvBlobResponse::TPtr& ev, const TActorContext& c
969
969
970
970
auto it = ReadInfo.find (cookie);
971
971
Y_ABORT_UNLESS (it != ReadInfo.end ());
972
-
972
+
973
973
TReadInfo info = std::move (it->second );
974
974
ReadInfo.erase (it);
975
975
@@ -980,7 +980,7 @@ void TPartition::Handle(TEvPQ::TEvBlobResponse::TPtr& ev, const TActorContext& c
980
980
info.Destination , GetSizeLag (info.Offset ), Tablet, Config.GetMeteringMode ()
981
981
));
982
982
const auto & resp = dynamic_cast <TEvPQ::TEvProxyResponse*>(answer.Event .Get ())->Response ;
983
-
983
+
984
984
if (HasError (*ev->Get ())) {
985
985
if (info.IsSubscription ) {
986
986
TabletCounters.Cumulative ()[COUNTER_PQ_READ_SUBSCRIPTION_ERROR].Increment (1 );
0 commit comments