|
30 | 30 | import org.opensearch.common.settings.Setting;
|
31 | 31 | import org.opensearch.common.settings.Settings;
|
32 | 32 | import org.opensearch.common.unit.TimeValue;
|
33 |
| -import org.opensearch.common.util.FeatureFlags; |
34 | 33 | import org.opensearch.env.NodeEnvironment;
|
35 | 34 | import org.opensearch.test.OpenSearchTestCase;
|
36 | 35 | import org.junit.Before;
|
@@ -183,7 +182,6 @@ public void testComputeIfAbsentWithFactoryBasedCacheCreation() throws Exception
|
183 | 182 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
184 | 183 | )
|
185 | 184 | .put(TIERED_SPILLOVER_SEGMENTS.getConcreteSettingForNamespace(CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()).getKey(), 1)
|
186 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
187 | 185 | .build();
|
188 | 186 | String storagePath = getStoragePath(settings);
|
189 | 187 | ICache<String, String> tieredSpilloverICache = new TieredSpilloverCache.TieredSpilloverCacheFactory().create(
|
@@ -283,7 +281,6 @@ public void testComputeIfAbsentWithSegmentedCache() throws Exception {
|
283 | 281 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
284 | 282 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
285 | 283 | )
|
286 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
287 | 284 | .build();
|
288 | 285 | String storagePath = getStoragePath(settings);
|
289 | 286 | ICache<String, String> tieredSpilloverICache = new TieredSpilloverCache.TieredSpilloverCacheFactory().create(
|
@@ -406,7 +403,6 @@ public void testWithFactoryCreationWithOnHeapCacheNotPresent() {
|
406 | 403 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
407 | 404 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
408 | 405 | )
|
409 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
410 | 406 | .build();
|
411 | 407 |
|
412 | 408 | IllegalArgumentException ex = assertThrows(
|
@@ -491,7 +487,6 @@ public void testComputeIfAbsentWithEvictionsFromOnHeapCache() throws Exception {
|
491 | 487 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
492 | 488 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
493 | 489 | )
|
494 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
495 | 490 | .put(
|
496 | 491 | TieredSpilloverCacheSettings.TIERED_SPILLOVER_ONHEAP_STORE_SIZE.getConcreteSettingForNamespace(
|
497 | 492 | CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()
|
@@ -1276,7 +1271,6 @@ public void testConcurrencyForEvictionFlowFromOnHeapToDiskTier() throws Exceptio
|
1276 | 1271 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
1277 | 1272 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
1278 | 1273 | )
|
1279 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
1280 | 1274 | .put(
|
1281 | 1275 | TieredSpilloverCacheSettings.TIERED_SPILLOVER_ONHEAP_STORE_SIZE.getConcreteSettingForNamespace(
|
1282 | 1276 | CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()
|
@@ -2160,7 +2154,6 @@ public void testWithInvalidSegmentNumber() throws Exception {
|
2160 | 2154 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
2161 | 2155 | )
|
2162 | 2156 | .put(TIERED_SPILLOVER_SEGMENTS.getConcreteSettingForNamespace(CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()).getKey(), 1)
|
2163 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2164 | 2157 | .put(TIERED_SPILLOVER_SEGMENTS.getConcreteSettingForNamespace(CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()).getKey(), 3)
|
2165 | 2158 | .build();
|
2166 | 2159 | String storagePath = getStoragePath(settings);
|
@@ -2226,7 +2219,6 @@ public void testWithVeryLowDiskCacheSize() throws Exception {
|
2226 | 2219 | ).getKey(),
|
2227 | 2220 | 1L
|
2228 | 2221 | )
|
2229 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2230 | 2222 | .put(TIERED_SPILLOVER_SEGMENTS.getConcreteSettingForNamespace(CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()).getKey(), 2)
|
2231 | 2223 | .build();
|
2232 | 2224 | String storagePath = getStoragePath(settings);
|
@@ -2285,7 +2277,6 @@ public void testTieredCacheDefaultSegmentCount() {
|
2285 | 2277 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
2286 | 2278 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
2287 | 2279 | )
|
2288 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2289 | 2280 | .build();
|
2290 | 2281 | String storagePath = getStoragePath(settings);
|
2291 | 2282 |
|
@@ -2365,7 +2356,6 @@ public void testSegmentSizesWhenUsingFactory() {
|
2365 | 2356 | ).getKey(),
|
2366 | 2357 | heapSizeFromImplSetting + "b"
|
2367 | 2358 | )
|
2368 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2369 | 2359 | .put(
|
2370 | 2360 | TIERED_SPILLOVER_SEGMENTS.getConcreteSettingForNamespace(CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()).getKey(),
|
2371 | 2361 | numSegments
|
@@ -2412,7 +2402,6 @@ public void testSegmentSizesWhenNotUsingFactory() {
|
2412 | 2402 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
2413 | 2403 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
2414 | 2404 | )
|
2415 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2416 | 2405 | // The size setting from the OpenSearchOnHeapCache implementation should not be honored
|
2417 | 2406 | .put(
|
2418 | 2407 | OpenSearchOnHeapCacheSettings.MAXIMUM_SIZE_IN_BYTES.getConcreteSettingForNamespace(
|
@@ -2697,7 +2686,6 @@ private TieredSpilloverCache<String, String> initializeTieredSpilloverCache(
|
2697 | 2686 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
2698 | 2687 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
2699 | 2688 | )
|
2700 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2701 | 2689 | .put(settings)
|
2702 | 2690 | .build()
|
2703 | 2691 | )
|
@@ -2750,7 +2738,6 @@ private CacheConfig<String, String> getCacheConfig(
|
2750 | 2738 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
2751 | 2739 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
2752 | 2740 | )
|
2753 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2754 | 2741 | .put(settings)
|
2755 | 2742 | .build()
|
2756 | 2743 | )
|
|
0 commit comments