Skip to content

Commit

Permalink
Fix NPE caused by MultiStageQueryThrottler (#14805)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjlli committed Jan 16, 2025
1 parent 3ee3dd4 commit 4325469
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,9 @@ public void start()
clusterConfigChangeHandler.init(_spectatorHelixManager);
}
_clusterConfigChangeHandlers.add(_queryQuotaManager);
_clusterConfigChangeHandlers.add(_multiStageQueryThrottler);
if (_multiStageQueryThrottler != null) {
_clusterConfigChangeHandlers.add(_multiStageQueryThrottler);
}
for (ClusterChangeHandler idealStateChangeHandler : _idealStateChangeHandlers) {
idealStateChangeHandler.init(_spectatorHelixManager);
}
Expand All @@ -416,7 +418,9 @@ public void start()
}
_externalViewChangeHandlers.add(_routingManager);
_externalViewChangeHandlers.add(_queryQuotaManager);
_externalViewChangeHandlers.add(_multiStageQueryThrottler);
if (_multiStageQueryThrottler != null) {
_externalViewChangeHandlers.add(_multiStageQueryThrottler);
}
for (ClusterChangeHandler instanceConfigChangeHandler : _instanceConfigChangeHandlers) {
instanceConfigChangeHandler.init(_spectatorHelixManager);
}
Expand Down

0 comments on commit 4325469

Please sign in to comment.