diff options
author | Jon Bratseth <bratseth@vespa.ai> | 2023-07-13 00:20:34 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@vespa.ai> | 2023-07-13 00:20:34 +0200 |
commit | 0992d1c51a38aecad0bba3452e9e5c304ff62c9f (patch) | |
tree | 9a3f41e7ccfc6c695c346714f0c4ffccaca4075b /node-repository | |
parent | 4ebadcb380aa4842327e7f5187efbcb13bedd925 (diff) |
Simplify
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeAllocation.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeAllocation.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeAllocation.java index 1d05548e571..28caf26353b 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeAllocation.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeAllocation.java @@ -402,22 +402,10 @@ class NodeAllocation { } List<Node> finalNodes() { - // Set whether the node is exclusive - for (NodeCandidate candidate : nodes.values()) { - candidate = candidate.withNode(); - Allocation allocation = candidate.allocation().get(); - candidate = candidate.withNode(candidate.toNode().with(allocation.with(allocation.membership() - .with(allocation.membership().cluster().exclusive(cluster.isExclusive()))))); - nodes.put(candidate.toNode().hostname(), candidate); - } - - // Place in groups GroupAssigner groupAssigner = new GroupAssigner(requested, allNodes, nodeRepository.clock()); Collection<NodeCandidate> finalNodes = groupAssigner.assignTo(nodes.values()); nodes.clear(); finalNodes.forEach(candidate -> nodes.put(candidate.toNode().hostname(), candidate)); - - // Set cluster ID and index return finalNodes.stream().map(NodeCandidate::toNode).toList(); } |