Skip to content

Commit

Permalink
Fix NPE in AdaptiveAllocationsScalerService (#114880) (#114890)
Browse files Browse the repository at this point in the history
* Fix NPE in AdaptiveAllocationsScalerService

* Update docs/changelog/114880.yaml

* Delete docs/changelog/114880.yaml
  • Loading branch information
jan-elastic authored Oct 16, 2024
1 parent bdac017 commit 419b74b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ private void processDeploymentStats(GetDeploymentStatsAction.Response statsRespo
public boolean maybeStartAllocation(TrainedModelAssignment assignment) {
if (assignment.getAdaptiveAllocationsSettings() != null
&& assignment.getAdaptiveAllocationsSettings().getEnabled() == Boolean.TRUE
&& assignment.getAdaptiveAllocationsSettings().getMinNumberOfAllocations() == 0) {
&& (assignment.getAdaptiveAllocationsSettings().getMinNumberOfAllocations() == null
|| assignment.getAdaptiveAllocationsSettings().getMinNumberOfAllocations() == 0)) {

// Prevent against a flurry of scale up requests.
if (deploymentIdsWithInFlightScaleFromZeroRequests.contains(assignment.getDeploymentId()) == false) {
Expand Down

0 comments on commit 419b74b

Please sign in to comment.