summaryrefslogtreecommitdiffstats
path: root/configserver/src
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-02-22 09:26:10 +0100
committerJon Marius Venstad <venstad@gmail.com>2021-02-22 09:26:10 +0100
commitd76d6c1ec8b349c11156205e4c5f08e50efcffc3 (patch)
tree6568d090bd363e50a8dfb4ec935eac9055375c50 /configserver/src
parenteaaeaf82d016ed8edd081bc63faafaa756aa35fe (diff)
Remove support for unused <controllers> under <content>
Diffstat (limited to 'configserver/src')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/application/HttpProxy.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/application/HttpProxy.java b/configserver/src/main/java/com/yahoo/vespa/config/server/application/HttpProxy.java
index 703215e2ec7..c244bd817ba 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/application/HttpProxy.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/application/HttpProxy.java
@@ -6,6 +6,9 @@ import com.yahoo.config.model.api.HostInfo;
import com.yahoo.config.model.api.PortInfo;
import com.yahoo.config.model.api.ServiceInfo;
import com.yahoo.container.jdisc.HttpResponse;
+
+import java.util.HashSet;
+import java.util.List;
import java.util.logging.Level;
import com.yahoo.vespa.config.server.http.HttpErrorResponse;
import com.yahoo.vespa.config.server.http.HttpFetcher;
@@ -44,10 +47,9 @@ public class HttpProxy {
// "http" and "state" seems to uniquely identify an interesting HTTP port on each service
PortInfo port = service.getPorts().stream()
- .filter(portInfo -> portInfo.getTags().stream().collect(Collectors.toSet()).containsAll(
- Stream.of("http", "state").collect(Collectors.toSet())))
- .findFirst()
- .orElseThrow(() -> new NotFoundException("Failed to find HTTP state port"));
+ .filter(portInfo -> portInfo.getTags().containsAll(List.of("http", "state")))
+ .findFirst()
+ .orElseThrow(() -> new NotFoundException("Failed to find HTTP state port"));
return internalGet(host.getHostname(), port.getPort(), relativePath);
}