diff --git a/helix-core/src/main/java/org/apache/helix/controller/stages/CurrentStateComputationStage.java b/helix-core/src/main/java/org/apache/helix/controller/stages/CurrentStateComputationStage.java index 4eb4004af2..51abca36b3 100644 --- a/helix-core/src/main/java/org/apache/helix/controller/stages/CurrentStateComputationStage.java +++ b/helix-core/src/main/java/org/apache/helix/controller/stages/CurrentStateComputationStage.java @@ -113,6 +113,8 @@ public void process(ClusterEvent event) throws Exception { reportResourcePartitionCapacityMetrics(dataProvider.getAsyncTasksThreadPool(), clusterStatusMonitor, dataProvider.getResourceConfigMap().values()); + // TODO: we only need to compute when there are resource using Waged. We should + // do this as perf improvement in future. WagedInstanceCapacity capacityProvider = new WagedInstanceCapacity(dataProvider); WagedResourceWeightsProvider weightProvider = new WagedResourceWeightsProvider(dataProvider);