@@ -4456,7 +4456,8 @@ Y_UNIT_TEST_SUITE(TPartitionTest)
44564456 }),
44574457 TVector<ui32>({
44584458 env.GetGroupIds ()[1 ],
4459- })
4459+ }),
4460+ TVector<ui32>()
44604461 );
44614462 partition.SendToPipe (std::move (request));
44624463 }
@@ -4480,7 +4481,8 @@ Y_UNIT_TEST_SUITE(TPartitionTest)
44804481 TVector<ui32>({
44814482 env.GetGroupIds ()[0 ],
44824483 env.GetGroupIds ()[1 ],
4483- })
4484+ }),
4485+ TVector<ui32>()
44844486 );
44854487 partition.SendToPipe (std::move (request));
44864488 }
@@ -4497,6 +4499,7 @@ Y_UNIT_TEST_SUITE(TPartitionTest)
44974499 {
44984500 auto request =
44994501 std::make_unique<TEvTablet::TEvCheckBlobstorageStatusResult>(
4502+ TVector<ui32>(),
45004503 TVector<ui32>(),
45014504 TVector<ui32>()
45024505 );
@@ -5346,24 +5349,33 @@ Y_UNIT_TEST_SUITE(TPartitionTest)
53465349 TPartitionClient partition (*runtime);
53475350 partition.WaitReady ();
53485351
5349- runtime->SetObserverFunc (
5350- StorageStateChanger (NKikimrBlobStorage::StatusDiskSpaceLightYellowMove));
5352+ runtime->SetObserverFunc (StorageStateChanger (
5353+ NKikimrBlobStorage::StatusDiskSpaceLightYellowMove |
5354+ NKikimrBlobStorage::StatusDiskSpaceYellowStop));
53515355 partition.WriteBlocks (TBlockRange32::WithLength (0 , 1024 ));
53525356
53535357 {
53545358 auto response = partition.Compaction ();
53555359 UNIT_ASSERT_VALUES_EQUAL (S_OK, response->GetError ().GetCode ());
53565360 }
53575361
5362+ ui32 flags = NKikimrBlobStorage::StatusDiskSpaceLightYellowMove |
5363+ NKikimrBlobStorage::StatusDiskSpaceYellowStop;
5364+
53585365 const auto badFlags = {
5366+ NKikimrBlobStorage::StatusDiskSpaceLightOrange,
5367+ NKikimrBlobStorage::StatusDiskSpacePreOrange,
53595368 NKikimrBlobStorage::StatusDiskSpaceOrange,
53605369 NKikimrBlobStorage::StatusDiskSpaceRed,
5370+ NKikimrBlobStorage::StatusDiskSpaceBlack
53615371 };
53625372
53635373 for (const auto flag: badFlags) {
5374+ flags |= flag;
5375+
53645376 partition.RebootTablet ();
53655377
5366- runtime->SetObserverFunc (StorageStateChanger (flag ));
5378+ runtime->SetObserverFunc (StorageStateChanger (flags ));
53675379 partition.WriteBlocks (TBlockRange32::WithLength (0 , 1024 ));
53685380
53695381 auto request = partition.CreateCompactionRequest ();
@@ -5467,7 +5479,8 @@ Y_UNIT_TEST_SUITE(TPartitionTest)
54675479 auto request =
54685480 std::make_unique<TEvTablet::TEvCheckBlobstorageStatusResult>(
54695481 TVector<ui32>({env.GetGroupIds ()[0 ], env.GetGroupIds ()[1 ]}),
5470- TVector<ui32>({env.GetGroupIds ()[0 ], env.GetGroupIds ()[1 ]})
5482+ TVector<ui32>({env.GetGroupIds ()[0 ], env.GetGroupIds ()[1 ]}),
5483+ TVector<ui32>()
54715484 );
54725485 partition.SendToPipe (std::move (request));
54735486 }
@@ -5530,7 +5543,8 @@ Y_UNIT_TEST_SUITE(TPartitionTest)
55305543 auto request =
55315544 std::make_unique<TEvTablet::TEvCheckBlobstorageStatusResult>(
55325545 TVector<ui32>({env.GetGroupIds ()[0 ]}),
5533- TVector<ui32>({env.GetGroupIds ()[0 ]})
5546+ TVector<ui32>({env.GetGroupIds ()[0 ]}),
5547+ TVector<ui32>()
55345548 );
55355549 partition.SendToPipe (std::move (request));
55365550 }
0 commit comments