summaryrefslogtreecommitdiffstats
path: root/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-10-29 10:59:59 +0200
committerJon Bratseth <bratseth@gmail.com>2022-10-29 10:59:59 +0200
commit619fe6be705974f19780057ca59aa081929737b9 (patch)
treeeedf07af1fd10c507199454baa0afe736f305d95 /node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java
parent9494f4ca0c8cfe853a60e73c5f79340080a5e972 (diff)
Revert "Merge pull request #24645 from vespa-engine/revert-24631-bratseth/fully-specified"
This reverts commit e4d472469b151b6279b9f93bf535b7486bb717f6, reversing changes made to 83905f5559e99a08ace73484fae34e36369942cb.
Diffstat (limited to 'node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java
index 4d50250e61a..689b5a9a950 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java
@@ -68,7 +68,7 @@ public class Autoscaler {
if ( ! clusterIsStable(clusterNodes, nodeRepository))
return Advice.none(Status.waiting, "Cluster change in progress");
- var currentAllocation = new AllocatableClusterResources(clusterNodes.asList(), nodeRepository);
+ var currentAllocation = new AllocatableClusterResources(clusterNodes, nodeRepository);
Optional<AllocatableClusterResources> bestAllocation =
allocationOptimizer.findBestAllocation(clusterModel.loadAdjustment(), currentAllocation, clusterModel, limits);
if (bestAllocation.isEmpty())