summaryrefslogtreecommitdiffstats
path: root/flags
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 /flags
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 'flags')
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/Flags.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
index e2810bbede4..23f6c604efd 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
@@ -414,6 +414,15 @@ public class Flags {
"Takes effect at next host-admin tick",
ZONE_ID);
+ public static final UnboundBooleanFlag ENABLE_CONDITIONAL_PUT_REMOVE_WRITE_REPAIR = defineFeatureFlag(
+ "enable-conditional-put-remove-write-repair", false,
+ List.of("vekterli", "havardpe"), "2023-05-10", "2023-07-01",
+ "If set, a conditional Put or Remove operation for a document in an inconsistent bucket " +
+ "will initiate a write-repair that evaluates the condition across all mutually inconsistent " +
+ "replicas, with the newest document version (if any) being authoritative",
+ "Takes effect at redeployment",
+ ZONE_ID, APPLICATION_ID);
+
/** WARNING: public for testing: All flags should be defined in {@link Flags}. */
public static UnboundBooleanFlag defineFeatureFlag(String flagId, boolean defaultValue, List<String> owners,
String createdAt, String expiresAt, String description,