Skip to content

Commit

Permalink
Fix NPE in AdaptiveAllocationsScalerService (elastic#114880)
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 4fd6218 commit f13e495
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 f13e495

Please sign in to comment.