Skip to content

Commit

Permalink
issue-2559: background shard stats aggregation shouldn't get stuck in…
Browse files Browse the repository at this point in the history
… case of GetStorageStats errors from shards (#2650)
  • Loading branch information
qkrorlqr authored Dec 8, 2024
1 parent 6271c21 commit f508886
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cloud/filestore/libs/storage/tablet/tablet_actor_counters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,10 +915,11 @@ void TIndexTabletActor::HandleGetShardStatsCompleted(
{
auto* msg = ev->Get();
const bool isBackgroundRequest = msg->StartedTs.GetValue() == 0;
if (isBackgroundRequest) {
CachedStatsFetchingInProgress = false;
}
if (!HasError(msg->Error)) {
if (isBackgroundRequest) {
CachedStatsFetchingInProgress = false;
} else {
if (!isBackgroundRequest) {
Metrics.StatFileStore.Update(1, 0, ctx.Now() - msg->StartedTs);
}
CachedAggregateStats = std::move(msg->AggregateStats);
Expand Down

0 comments on commit f508886

Please sign in to comment.