diff options
author | Jon Bratseth <bratseth@oath.com> | 2021-01-17 20:27:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 20:27:16 +0100 |
commit | c7610b3a6585ad09a170da9658909d2a157ef44e (patch) | |
tree | 5361dd1926e38abec135dd9609b0f980b0d6757f /config-model/src/main/java/com/yahoo | |
parent | 43a9d76241663d30460c434f5aa058780f06e44b (diff) | |
parent | c920c1008a115390993b1bb2212a2f42c70c33d2 (diff) |
Merge pull request #16075 from vespa-engine/revert-16074-balder/gc-unused-usedirectstorageapi-flag
Revert "GC unused useDirectStoarageApiRpc flag"
Diffstat (limited to 'config-model/src/main/java/com/yahoo')
-rw-r--r-- | config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java | 1 | ||||
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/content/ContentNode.java | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java b/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java index 9e8e9656e90..521b8f6998d 100644 --- a/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java +++ b/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java @@ -72,6 +72,7 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea @Override public Optional<EndpointCertificateSecrets> endpointCertificateSecrets() { return endpointCertificateSecrets; } @Override public double defaultTermwiseLimit() { return defaultTermwiseLimit; } @Override public boolean useThreePhaseUpdates() { return useThreePhaseUpdates; } + @Override public boolean useDirectStorageApiRpc() { return true; } @Override public Optional<AthenzDomain> athenzDomain() { return Optional.ofNullable(athenzDomain); } @Override public Optional<ApplicationRoles> applicationRoles() { return Optional.ofNullable(applicationRoles); } @Override public String responseSequencerType() { return responseSequencerType; } diff --git a/config-model/src/main/java/com/yahoo/vespa/model/content/ContentNode.java b/config-model/src/main/java/com/yahoo/vespa/model/content/ContentNode.java index 705d2dc668d..736424e263d 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/content/ContentNode.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/content/ContentNode.java @@ -27,6 +27,7 @@ public abstract class ContentNode extends AbstractService private final boolean skipCommunicationManagerThread; private final boolean skipMbusRequestThread; private final boolean skipMbusReplyThread; + private final boolean useDirectStorageApiRpc; public ContentNode(ModelContext.FeatureFlags featureFlags, AbstractConfigProducer<?> parent, String clusterName, String rootDirectory, int distributionKey) { super(parent, "" + distributionKey); @@ -35,6 +36,7 @@ public abstract class ContentNode extends AbstractService this.skipMbusRequestThread = featureFlags.skipMbusRequestThread(); this.skipMbusReplyThread = featureFlags.skipMbusReplyThread(); this.rootDirectory = rootDirectory; + this.useDirectStorageApiRpc = featureFlags.useDirectStorageApiRpc(); initialize(); setProp("clustertype", "content"); @@ -81,6 +83,7 @@ public abstract class ContentNode extends AbstractService builder.skip_thread(skipCommunicationManagerThread); builder.mbus.skip_request_thread(skipMbusRequestThread); builder.mbus.skip_reply_thread(skipMbusReplyThread); + builder.use_direct_storageapi_rpc(useDirectStorageApiRpc); } @Override |