Skip to content

Commit

Permalink
HPCC-31382 Activity CostFileAccess not always updated to sg scope
Browse files Browse the repository at this point in the history
Subgraph's CostFileAccess was being set before the activities stats are
updated, meaning that some activities CostFileAccess is not updated to
subgraph scope.

Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Mar 1, 2024
1 parent 5f9b805 commit ffb592e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions thorlcr/graph/thgraphmaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2925,10 +2925,6 @@ bool CMasterGraph::deserializeStats(unsigned node, MemoryBuffer &mb)
void CMasterGraph::getStats(IStatisticGatherer &stats)
{
stats.addStatistic(StNumSlaves, queryClusterWidth());
cost_type costDiskAccess = getDiskAccessCost();
if (costDiskAccess)
stats.addStatistic(StCostFileAccess, costDiskAccess);

// graph specific stats
graphStats.getStats(stats);

Expand Down Expand Up @@ -2957,6 +2953,9 @@ void CMasterGraph::getStats(IStatisticGatherer &stats)
activity->getActivityStats(stats);
}
}
cost_type costDiskAccess = getDiskAccessCost();
if (costDiskAccess)
stats.addStatistic(StCostFileAccess, costDiskAccess);
}

cost_type CMasterGraph::getDiskAccessCost()
Expand Down

0 comments on commit ffb592e

Please sign in to comment.