diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2019-05-22 11:25:07 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2019-05-22 11:25:07 +0200 |
commit | f3cd6e93cb971022a9b7bb498560d927b54225e0 (patch) | |
tree | 3d233cebf001cf6e12ef747cb355381f23b58788 /config-model | |
parent | f77c823a66ca1f59978720aefc8b5bb22ed799be (diff) | |
parent | 6cbdbd32fd52f9f112ee4047fa10fee4dd66e900 (diff) |
Merge branch 'master' into bratseth/test-cd-allocation-take-2
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/container/Container.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/Container.java b/config-model/src/main/java/com/yahoo/vespa/model/container/Container.java index 2688f379ada..52abe8e8fde 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/container/Container.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/container/Container.java @@ -88,6 +88,7 @@ public abstract class Container extends AbstractService implements this.index = index; if (getHttp() == null) { + // TODO Vespa 8: set to 1. The second (health) port has not been used since Vespa 6 or earlier. numHttpServerPorts = 2; addChild(defaultHttpServer); } else if (getHttp().getHttpServer() == null) { @@ -240,7 +241,8 @@ public abstract class Container extends AbstractService implements * @return the number of ports needed by the Container except those reserved manually(reservePortPrepended) */ public int getPortCount() { - int httpPorts = (getHttp() != null) ? 0 : numHttpServerPorts + 2; // TODO remove +2, only here to keep irrelevant unit tests from failing. + // TODO Vespa 8: remove +2, only here for historical reasons + int httpPorts = (getHttp() != null) ? 0 : numHttpServerPorts + 2; return httpPorts + numMessageBusPorts() + numRpcPorts(); } |