summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/config/model
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2023-05-10 15:44:45 +0200
committerTor Brede Vekterli <vekterli@yahooinc.com>2023-05-10 15:44:45 +0200
commit2ad5edd01b4eea8aa961413d10d3777012adc53e (patch)
tree834173b4604ee3ef565af79d42e80e3e16418827 /config-model/src/main/java/com/yahoo/config/model
parent2d11f545108d46dc6ae2aff098892f5462f2cefc (diff)
Add feature flag for enabling conditional put/remove write repair
This maps to controlling the distributed condition probe feature of the content layer, which in turn controls whether a conditional put/remove to an inconsistent bucket triggers a write repair step on the distributor.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/config/model')
-rw-r--r--config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java7
1 files changed, 7 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 540905bef4c..56f999f85b4 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
@@ -84,6 +84,7 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea
private Optional<CloudAccount> cloudAccount = Optional.empty();
private boolean allowUserFilters = true;
private boolean allowMoreThanOneContentGroupDown = false;
+ private boolean enableConditionalPutRemoveWriteRepair = false;
@Override public ModelContext.FeatureFlags featureFlags() { return this; }
@Override public boolean multitenant() { return multitenant; }
@@ -142,6 +143,7 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea
@Override public boolean allowUserFilters() { return allowUserFilters; }
@Override public boolean enableGlobalPhase() { return true; } // Enable global-phase by default for unit tests only
@Override public boolean allowMoreThanOneContentGroupDown(ClusterSpec.Id id) { return allowMoreThanOneContentGroupDown; }
+ @Override public boolean enableConditionalPutRemoveWriteRepair() { return enableConditionalPutRemoveWriteRepair; }
public TestProperties sharedStringRepoNoReclaim(boolean sharedStringRepoNoReclaim) {
this.sharedStringRepoNoReclaim = sharedStringRepoNoReclaim;
@@ -375,6 +377,11 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea
return this;
}
+ public TestProperties setEnableConditionalPutRemoveWriteRepair(boolean enable) {
+ this.enableConditionalPutRemoveWriteRepair = enable;
+ return this;
+ }
+
public TestProperties setAllowUserFilters(boolean b) { this.allowUserFilters = b; return this; }
public static class Spec implements ConfigServerSpec {