@@ -496,6 +496,7 @@ class TTabletReqRebuildHistoryGraph : public TActorBootstrapped<TTabletReqRebuil
496496 return BuildHistory ();
497497
498498 for (auto &xpair : RefsToCheckByGroup) {
499+ std::ranges::sort (xpair.second );
499500 if (!SendRefsCheck (xpair.second , xpair.first )) {
500501 BLOG_ERROR (" TTabletReqRebuildHistoryGraph::MakeHistory SendRefsCheck A error" , " TRRH06" );
501502 if (IntrospectionTrace) {
@@ -519,6 +520,11 @@ class TTabletReqRebuildHistoryGraph : public TActorBootstrapped<TTabletReqRebuil
519520 ui64 endRequestIdx = endIdx;
520521 ui64 totalSize = 0 ;
521522 for (ui64 i = firstRequestIdx; i != endIdx; ++i) {
523+ if (refs[i].Generation () != refs[firstRequestIdx].Generation ()) {
524+ endRequestIdx = i;
525+ break ;
526+ }
527+
522528 ui64 size = refs[i].BlobSize ();
523529 Y_ABORT_UNLESS (size != 0 );
524530
@@ -539,7 +545,8 @@ class TTabletReqRebuildHistoryGraph : public TActorBootstrapped<TTabletReqRebuil
539545 q[i].Set (refs[i + firstRequestIdx] /* must be index read*/ );
540546 }
541547 SendToBSProxy (SelfId (), group, new TEvBlobStorage::TEvGet (q, (ui32)count, TInstant::Max (),
542- NKikimrBlobStorage::EGetHandleClass::FastRead, true , true , TEvBlobStorage::TEvGet::TForceBlockTabletData (Info->TabletID , BlockedGen)));
548+ NKikimrBlobStorage::EGetHandleClass::FastRead, true , true , TEvBlobStorage::TEvGet::TForceBlockTabletData (
549+ Info->TabletID , refs[firstRequestIdx].Generation ())));
543550 ++RequestsLeft;
544551
545552 firstRequestIdx = endRequestIdx;
0 commit comments