|
29 | 29 | import org.opensearch.common.settings.Setting;
|
30 | 30 | import org.opensearch.common.settings.Settings;
|
31 | 31 | import org.opensearch.common.unit.TimeValue;
|
32 |
| -import org.opensearch.common.util.FeatureFlags; |
33 | 32 | import org.opensearch.env.NodeEnvironment;
|
34 | 33 | import org.opensearch.test.OpenSearchTestCase;
|
35 | 34 | import org.junit.Before;
|
@@ -179,7 +178,6 @@ public void testComputeIfAbsentWithFactoryBasedCacheCreation() throws Exception
|
179 | 178 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
180 | 179 | )
|
181 | 180 | .put(TIERED_SPILLOVER_SEGMENTS.getConcreteSettingForNamespace(CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()).getKey(), 1)
|
182 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
183 | 181 | .build();
|
184 | 182 | String storagePath = getStoragePath(settings);
|
185 | 183 | ICache<String, String> tieredSpilloverICache = new TieredSpilloverCache.TieredSpilloverCacheFactory().create(
|
@@ -279,7 +277,6 @@ public void testComputeIfAbsentWithSegmentedCache() throws Exception {
|
279 | 277 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
280 | 278 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
281 | 279 | )
|
282 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
283 | 280 | .build();
|
284 | 281 | String storagePath = getStoragePath(settings);
|
285 | 282 | ICache<String, String> tieredSpilloverICache = new TieredSpilloverCache.TieredSpilloverCacheFactory().create(
|
@@ -402,7 +399,6 @@ public void testWithFactoryCreationWithOnHeapCacheNotPresent() {
|
402 | 399 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
403 | 400 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
404 | 401 | )
|
405 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
406 | 402 | .build();
|
407 | 403 |
|
408 | 404 | IllegalArgumentException ex = assertThrows(
|
@@ -487,7 +483,6 @@ public void testComputeIfAbsentWithEvictionsFromOnHeapCache() throws Exception {
|
487 | 483 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
488 | 484 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
489 | 485 | )
|
490 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
491 | 486 | .put(
|
492 | 487 | TieredSpilloverCacheSettings.TIERED_SPILLOVER_ONHEAP_STORE_SIZE.getConcreteSettingForNamespace(
|
493 | 488 | CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()
|
@@ -1270,7 +1265,6 @@ public void testConcurrencyForEvictionFlowFromOnHeapToDiskTier() throws Exceptio
|
1270 | 1265 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
1271 | 1266 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
1272 | 1267 | )
|
1273 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
1274 | 1268 | .put(
|
1275 | 1269 | TieredSpilloverCacheSettings.TIERED_SPILLOVER_ONHEAP_STORE_SIZE.getConcreteSettingForNamespace(
|
1276 | 1270 | CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()
|
@@ -1956,7 +1950,6 @@ public void testWithInvalidSegmentNumber() throws Exception {
|
1956 | 1950 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
1957 | 1951 | )
|
1958 | 1952 | .put(TIERED_SPILLOVER_SEGMENTS.getConcreteSettingForNamespace(CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()).getKey(), 1)
|
1959 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
1960 | 1953 | .put(TIERED_SPILLOVER_SEGMENTS.getConcreteSettingForNamespace(CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()).getKey(), 3)
|
1961 | 1954 | .build();
|
1962 | 1955 | String storagePath = getStoragePath(settings);
|
@@ -2022,7 +2015,6 @@ public void testWithVeryLowDiskCacheSize() throws Exception {
|
2022 | 2015 | ).getKey(),
|
2023 | 2016 | 1L
|
2024 | 2017 | )
|
2025 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2026 | 2018 | .put(TIERED_SPILLOVER_SEGMENTS.getConcreteSettingForNamespace(CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()).getKey(), 2)
|
2027 | 2019 | .build();
|
2028 | 2020 | String storagePath = getStoragePath(settings);
|
@@ -2081,7 +2073,6 @@ public void testTieredCacheDefaultSegmentCount() {
|
2081 | 2073 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
2082 | 2074 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
2083 | 2075 | )
|
2084 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2085 | 2076 | .build();
|
2086 | 2077 | String storagePath = getStoragePath(settings);
|
2087 | 2078 |
|
@@ -2215,7 +2206,6 @@ public void testSegmentSizesWhenUsingFactory() {
|
2215 | 2206 | ).getKey(),
|
2216 | 2207 | heapSizeFromImplSetting + "b"
|
2217 | 2208 | )
|
2218 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2219 | 2209 | .put(
|
2220 | 2210 | TIERED_SPILLOVER_SEGMENTS.getConcreteSettingForNamespace(CacheType.INDICES_REQUEST_CACHE.getSettingPrefix()).getKey(),
|
2221 | 2211 | numSegments
|
@@ -2262,7 +2252,6 @@ public void testSegmentSizesWhenNotUsingFactory() {
|
2262 | 2252 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
2263 | 2253 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
2264 | 2254 | )
|
2265 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2266 | 2255 | // The size setting from the OpenSearchOnHeapCache implementation should not be honored
|
2267 | 2256 | .put(
|
2268 | 2257 | OpenSearchOnHeapCacheSettings.MAXIMUM_SIZE_IN_BYTES.getConcreteSettingForNamespace(
|
@@ -2462,7 +2451,6 @@ private TieredSpilloverCache<String, String> intializeTieredSpilloverCache(
|
2462 | 2451 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
2463 | 2452 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
2464 | 2453 | )
|
2465 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2466 | 2454 | .put(settings)
|
2467 | 2455 | .build()
|
2468 | 2456 | )
|
@@ -2514,7 +2502,6 @@ private CacheConfig<String, String> getCacheConfig(
|
2514 | 2502 | CacheSettings.getConcreteStoreNameSettingForCacheType(CacheType.INDICES_REQUEST_CACHE).getKey(),
|
2515 | 2503 | TieredSpilloverCache.TieredSpilloverCacheFactory.TIERED_SPILLOVER_CACHE_NAME
|
2516 | 2504 | )
|
2517 |
| - .put(FeatureFlags.PLUGGABLE_CACHE, "true") |
2518 | 2505 | .put(settings)
|
2519 | 2506 | .build()
|
2520 | 2507 | )
|
|
0 commit comments