Skip to content

Commit

Permalink
IGNITE-23355 Fix clusterPartitionsCountByState metric failure if topo…
Browse files Browse the repository at this point in the history
…logy not initialized (#11582)
  • Loading branch information
chesnokoff authored Oct 15, 2024
1 parent 01ba73c commit c4deea4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ private int nodePartitionsCountByState(UUID nodeId, GridDhtPartitionState state)
private int clusterPartitionsCountByState(GridDhtPartitionState state) {
GridDhtPartitionFullMap partFullMap = ctx.topology().partitionMap(true);

if (partFullMap == null)
return 0;

int cnt = 0;

for (UUID nodeId : partFullMap.keySet())
Expand Down

0 comments on commit c4deea4

Please sign in to comment.