Skip to content

Commit

Permalink
manual grab changes to avoid crash on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherednik committed Jan 16, 2025
1 parent 29f8484 commit c75ad77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ydb/core/viewer/viewer_nodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class TJsonNodes : public TViewerPipeClient {
std::optional<TRequestResponse<TEvStateStorage::TEvBoardInfo>> ResourceBoardInfoResponse;
std::optional<TRequestResponse<TEvTxProxySchemeCache::TEvNavigateKeySetResult>> PathNavigateResponse;
std::unordered_map<TTabletId, TRequestResponse<TEvHive::TEvResponseHiveNodeStats>> HiveNodeStats;

bool HiveNodeStatsProcessed = false;
std::vector<TTabletId> HivesToAsk;
bool AskHiveAboutPaths = false;

Expand Down Expand Up @@ -1542,7 +1542,7 @@ class TJsonNodes : public TViewerPipeClient {
return false;
}
}
return !HiveNodeStats.empty();
return !HiveNodeStatsProcessed;
}

bool TimeToAskHive() {
Expand Down Expand Up @@ -1865,7 +1865,7 @@ class TJsonNodes : public TViewerPipeClient {
}
}
}
HiveNodeStats.clear();
HiveNodeStatsProcessed = true;
}

if (FilterStorageStage == EFilterStorageStage::Pools && StoragePoolsResponse && StoragePoolsResponse->IsDone()) {
Expand Down

0 comments on commit c75ad77

Please sign in to comment.