diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2023-05-10 15:44:45 +0200 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2023-05-10 15:44:45 +0200 |
commit | 2ad5edd01b4eea8aa961413d10d3777012adc53e (patch) | |
tree | 834173b4604ee3ef565af79d42e80e3e16418827 /flags | |
parent | 2d11f545108d46dc6ae2aff098892f5462f2cefc (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.java | 9 |
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, |