diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-11-24 00:00:19 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-11-24 00:00:19 +0100 |
commit | 90b260e83678edc36eb877ec235e0e6ce5892a48 (patch) | |
tree | 081a1ebe9316553bcbbf3d568f245d702b72bd55 /container-search/src/main/java/com/yahoo/search/dispatch/InvokerFactory.java | |
parent | ba11a8a87877dd3a97586255839b02782b70de87 (diff) |
Cleanup the concept of orderedGroups. Just use a single way of accessing the groups.
Simplify testing by introducing a GroupList to contain all acces to groups and nodes.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/dispatch/InvokerFactory.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/dispatch/InvokerFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/dispatch/InvokerFactory.java b/container-search/src/main/java/com/yahoo/search/dispatch/InvokerFactory.java index 4b40dcf6c68..f3d87e04810 100644 --- a/container-search/src/main/java/com/yahoo/search/dispatch/InvokerFactory.java +++ b/container-search/src/main/java/com/yahoo/search/dispatch/InvokerFactory.java @@ -57,7 +57,7 @@ public abstract class InvokerFactory { List<Node> nodes, boolean acceptIncompleteCoverage, int maxHits) { - Group group = searchCluster.group(nodes.get(0).group()).get(); // Nodes must be of the same group + Group group = searchCluster.group(nodes.get(0).group()); // Nodes must be of the same group List<SearchInvoker> invokers = new ArrayList<>(nodes.size()); Set<Integer> failed = null; for (Node node : nodes) { |