Skip to content

Commit 22af0b2

Browse files
Refactor writable warm feature flag to include tiering
Signed-off-by: Neetika Singhal <neetiks@amazon.com>
1 parent edcbdaf commit 22af0b2

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

server/src/main/java/org/opensearch/common/settings/FeatureFlagSettings.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ protected FeatureFlagSettings(
3434
FeatureFlags.IDENTITY_SETTING,
3535
FeatureFlags.TELEMETRY_SETTING,
3636
FeatureFlags.DATETIME_FORMATTER_CACHING_SETTING,
37-
FeatureFlags.WRITEABLE_REMOTE_INDEX_SETTING,
38-
FeatureFlags.PLUGGABLE_CACHE_SETTING,
39-
FeatureFlags.REMOTE_STORE_MIGRATION_EXPERIMENTAL_SETTING
37+
FeatureFlags.TIERED_REMOTE_INDEX_SETTING,
38+
FeatureFlags.REMOTE_STORE_MIGRATION_EXPERIMENTAL_SETTING,
39+
FeatureFlags.PLUGGABLE_CACHE_SETTING
4040
);
4141
}

server/src/main/java/org/opensearch/common/util/FeatureFlags.java

+4-8
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ public class FeatureFlags {
5656
public static final String DATETIME_FORMATTER_CACHING = "opensearch.experimental.optimization.datetime_formatter_caching.enabled";
5757

5858
/**
59-
* Gates the functionality of writeable remote index
59+
* Gates the functionality of remote index having the capability to move across different tiers
6060
* Once the feature is ready for release, this feature flag can be removed.
6161
*/
62-
public static final String WRITEABLE_REMOTE_INDEX = "opensearch.experimental.feature.writeable_remote_index.enabled";
62+
public static final String TIERED_REMOTE_INDEX = "opensearch.experimental.feature.tiered_remote_index.enabled";
6363

6464
/**
6565
* Gates the functionality of pluggable cache.
@@ -85,11 +85,7 @@ public class FeatureFlags {
8585
Property.NodeScope
8686
);
8787

88-
public static final Setting<Boolean> WRITEABLE_REMOTE_INDEX_SETTING = Setting.boolSetting(
89-
WRITEABLE_REMOTE_INDEX,
90-
false,
91-
Property.NodeScope
92-
);
88+
public static final Setting<Boolean> TIERED_REMOTE_INDEX_SETTING = Setting.boolSetting(TIERED_REMOTE_INDEX, false, Property.NodeScope);
9389

9490
public static final Setting<Boolean> PLUGGABLE_CACHE_SETTING = Setting.boolSetting(PLUGGABLE_CACHE, false, Property.NodeScope);
9591

@@ -99,7 +95,7 @@ public class FeatureFlags {
9995
IDENTITY_SETTING,
10096
TELEMETRY_SETTING,
10197
DATETIME_FORMATTER_CACHING_SETTING,
102-
WRITEABLE_REMOTE_INDEX_SETTING,
98+
TIERED_REMOTE_INDEX_SETTING,
10399
PLUGGABLE_CACHE_SETTING
104100
);
105101
/**

0 commit comments

Comments
 (0)