Skip to content

Commit 75c9a74

Browse files
authored
Blobs balancer: fix unhadled event in case of chunk read timeout (#9999)
1 parent 173b739 commit 75c9a74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ydb/core/blobstorage/vdisk/balance/sender.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ namespace {
144144
void SendPartsOnMain(const TActorId& selfId, TVector<TPart>& parts) {
145145
THashMap<TVDiskID, std::unique_ptr<TEvBlobStorage::TEvVMultiPut>> vDiskToEv;
146146
for (auto& part: parts) {
147+
if (part.PartsData.empty()) {
148+
continue;
149+
}
147150
auto localParts = part.PartsMask;
148151
for (ui8 partIdx = localParts.FirstPosition(), i = 0; partIdx < localParts.GetSize(); partIdx = localParts.NextPosition(partIdx), ++i) {
149152
auto key = TLogoBlobID(part.Key, partIdx + 1);
@@ -324,6 +327,8 @@ namespace {
324327
hFunc(TEvBlobStorage::TEvVPutResult, HandlePutResult)
325328
hFunc(TEvBlobStorage::TEvVMultiPutResult, HandlePutResult)
326329

330+
cFunc(NPDisk::TEvChunkReadResult::EventType, [](){}) // read results received after timeout
331+
327332
hFunc(TEvVGenerationChange, Handle)
328333
cFunc(NActors::TEvents::TEvPoison::EventType, PassAway)
329334
);

0 commit comments

Comments
 (0)