Skip to content

Commit 041b08d

Browse files
authored
add LightOrangeGroups to CheckBlobstorageStatusResult (#19006) (#19031)
2 parents 5e78190 + 8a97e2c commit 041b08d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ydb/core/base/tablet.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,10 +774,13 @@ struct TEvTablet {
774774
struct TEvCheckBlobstorageStatusResult : public TEventLocal<TEvCheckBlobstorageStatusResult, EvCheckBlobstorageStatusResult> {
775775
TVector<ui32> LightYellowMoveGroups;
776776
TVector<ui32> YellowStopGroups;
777+
TVector<ui32> LightOrangeGroups;
777778

778-
TEvCheckBlobstorageStatusResult(TVector<ui32> &&lightYellowMoveGroups, TVector<ui32> &&yellowStopGroups)
779+
TEvCheckBlobstorageStatusResult(TVector<ui32> &&lightYellowMoveGroups, TVector<ui32> &&yellowStopGroups,
780+
TVector<ui32> &&lightOrangeGroups)
779781
: LightYellowMoveGroups(std::move(lightYellowMoveGroups))
780782
, YellowStopGroups(std::move(yellowStopGroups))
783+
, LightOrangeGroups(std::move(lightOrangeGroups))
781784

782785
{}
783786
};

ydb/core/base/tablet_status_checker.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class TTabletStatusCheckRequest : public TActorBootstrapped<TTabletStatusCheckRe
1414
ui32 RequestsLeft;
1515
TVector<ui32> LightYellowMoveGroups;
1616
TVector<ui32> YellowStopGroups;
17+
TVector<ui32> LightOrangeGroups;
1718

1819
void Handle(TEvBlobStorage::TEvStatusResult::TPtr &ev, const TActorContext &ctx) {
1920
const TEvBlobStorage::TEvStatusResult *msg = ev->Get();
@@ -25,10 +26,14 @@ class TTabletStatusCheckRequest : public TActorBootstrapped<TTabletStatusCheckRe
2526
if (msg->StatusFlags.Check(NKikimrBlobStorage::StatusDiskSpaceYellowStop)) {
2627
YellowStopGroups.push_back(ev->Cookie);
2728
}
29+
if (msg->StatusFlags.Check(NKikimrBlobStorage::StatusDiskSpaceLightOrange)) {
30+
LightOrangeGroups.push_back(ev->Cookie);
31+
}
2832

2933
if (RequestsLeft == 0) {
3034
ctx.Send(ReplyTo, new TEvTablet::TEvCheckBlobstorageStatusResult(std::move(LightYellowMoveGroups),
31-
std::move(YellowStopGroups)));
35+
std::move(YellowStopGroups),
36+
std::move(LightOrangeGroups)));
3237
return Die(ctx);
3338
}
3439
}

0 commit comments

Comments
 (0)