File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -508,6 +508,10 @@ TMaybe<TReadAnswer> TReadInfo::AddBlobsFromBody(const TVector<NPQ::TRequestedBlo
508508 if (res.IsLastPart ()) {
509509 PartNo = 0 ;
510510 ++Offset;
511+ if (LastOffset && Offset >= LastOffset) {
512+ needStop = true ;
513+ break ;
514+ }
511515 } else {
512516 ++PartNo;
513517 }
@@ -644,6 +648,9 @@ TReadAnswer TReadInfo::FormAnswer(
644648 if (updateUsage (writeBlob)) {
645649 break ;
646650 }
651+ if (LastOffset && Offset >= LastOffset) {
652+ break ;
653+ }
647654 }
648655 }
649656
Original file line number Diff line number Diff line change @@ -815,11 +815,13 @@ Y_UNIT_TEST(PartitionKeyCompaction) {
815815 group->GetNamedCounter (" name" , " topic.partition.write.lag_milliseconds_max" , false )->Set (600 );
816816 group->GetNamedCounter (" name" , " topic.partition.uptime_milliseconds_min" , false )->Set (30000 );
817817 group->GetNamedCounter (" name" , " topic.partition.write.lag_milliseconds_max" , false )->Set (600 );
818+ group->GetNamedCounter (" name" , " topic.partition.read.throttled_microseconds_max" , false )->Set (2000 );
818819 group = group->GetSubgroup (" consumer" , " __ydb_compaction_consumer" );
819820 group->GetNamedCounter (" name" , " topic.partition.write.lag_milliseconds_max" , false )->Set (200 );
820821 group->GetNamedCounter (" name" , " topic.partition.end_to_end_lag_milliseconds_max" , false )->Set (30000 );
821822 group->GetNamedCounter (" name" , " topic.partition.read.throttled_microseconds_max" , false )->Set (2000 );
822823 group->GetNamedCounter (" name" , " topic.partition.read.idle_milliseconds_max" , false )->Set (300 );
824+ group->GetNamedCounter (" name" , " topic.partition.read.lag_milliseconds_max" , false )->Set (300 );
823825
824826 TStringStream countersStr;
825827 dbGroup->OutputHtml (countersStr);
Original file line number Diff line number Diff line change 2828 name=topic.partition.producers_count_max: 1
2929 name=topic.partition.read.inflight_throttled_microseconds_max: 0
3030 name=topic.partition.read.speed_limit_bytes_per_second: 20000000000
31- name=topic.partition.read.throttled_microseconds_max: 148
31+ name=topic.partition.read.throttled_microseconds_max: 2000
3232 name=topic.partition.read_without_consumer.speed_limit_bytes_per_second: 0
3333 name=topic.partition.read_without_consumer.throttled_microseconds_max: 0
3434 name=topic.partition.storage_bytes_max: 7549747200
5353 name=topic.partition.committed_read_lag_milliseconds_max: 0
5454 name=topic.partition.end_to_end_lag_milliseconds_max: 30000
5555 name=topic.partition.read.idle_milliseconds_max: 300
56- name=topic.partition.read.lag_messages_max: 0
57- name=topic.partition.read.lag_milliseconds_max: 0
56+ name=topic.partition.read.lag_messages_max: 1
57+ name=topic.partition.read.lag_milliseconds_max: 300
5858 name=topic.partition.read.speed_limit_bytes_per_second: 4194304
5959 name=topic.partition.read.throttled_microseconds_max: 2000
6060 name=topic.partition.write.lag_milliseconds_max: 200
61- name=topic.read.lag_messages: 0
61+ name=topic.read.lag_messages: 1
6262
6363 consumer=client:
6464 name=topic.partition.alive_count: 0
You can’t perform that action at this time.
0 commit comments