diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-02-22 09:26:10 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-02-22 09:26:10 +0100 |
commit | d76d6c1ec8b349c11156205e4c5f08e50efcffc3 (patch) | |
tree | 6568d090bd363e50a8dfb4ec935eac9055375c50 /configserver/src | |
parent | eaaeaf82d016ed8edd081bc63faafaa756aa35fe (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.java | 10 |
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); } |