aboutsummaryrefslogtreecommitdiffstats
path: root/flags/src
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2023-09-12 11:39:27 +0200
committerTor Brede Vekterli <vekterli@yahooinc.com>2023-09-12 15:28:08 +0200
commit9653b487a5ed2c7a62b0c06c1215ea947a09ee30 (patch)
tree13990074b2accce222ed6c70c7a0e7901d65df00 /flags/src
parent6ac162f1ec099f014ceee92c9afde50d2e3e8a33 (diff)
Add feature flag for new content layer metadata features
Exposed as an integer rather than a bool to account for future additions without needing to add more feature flags to the mix. In particular this is because those additions are expected to require the other additions to be present, so it's not a mix and match situation. Only values 0 (legacy) and 1 (operation cancellation) map to any underlying configs at this time, though any higher number will transparently enable cancellation. Value 2 is documented based on its intended future semantics.
Diffstat (limited to 'flags/src')
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/Flags.java8
1 files changed, 8 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 8c3cf337ce3..947338c71e7 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
@@ -398,6 +398,14 @@ public class Flags {
"Takes effect immediately",
APPLICATION_ID);
+ public static final UnboundIntFlag CONTENT_LAYER_METADATA_FEATURE_LEVEL = defineIntFlag(
+ "content-layer-metadata-feature-level", 0,
+ List.of("vekterli"), "2022-09-12", "2024-02-01",
+ "Value semantics: 0) legacy behavior, 1) operation cancellation, 2) operation " +
+ "cancellation and ephemeral content node sequence numbers for bucket replicas",
+ "Takes effect at redeployment",
+ 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,