From 8ea8f077cc977ab38d6eed081b7dc87843dd1e6e Mon Sep 17 00:00:00 2001 From: Peter Alfonsi Date: Tue, 17 Dec 2024 13:45:21 -0800 Subject: [PATCH] spotlessApply Signed-off-by: Peter Alfonsi --- .../opensearch/cache/common/tier/TieredSpilloverCacheTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/cache-common/src/test/java/org/opensearch/cache/common/tier/TieredSpilloverCacheTests.java b/modules/cache-common/src/test/java/org/opensearch/cache/common/tier/TieredSpilloverCacheTests.java index 4fa4ee64c1f0e..996c3bfd71100 100644 --- a/modules/cache-common/src/test/java/org/opensearch/cache/common/tier/TieredSpilloverCacheTests.java +++ b/modules/cache-common/src/test/java/org/opensearch/cache/common/tier/TieredSpilloverCacheTests.java @@ -2112,6 +2112,7 @@ public void testTieredCacheDefaultSegmentCount() { assertEquals(TieredSpilloverCacheSettings.defaultSegments(), tieredSpilloverCache.getNumberOfSegments()); assertTrue(VALID_SEGMENT_COUNT_VALUES.contains(tieredSpilloverCache.getNumberOfSegments())); } + public void testDropStatsForDimensions() throws Exception { int onHeapCacheSize = randomIntBetween(300, 600); int diskCacheSize = randomIntBetween(700, 1200); @@ -2165,6 +2166,7 @@ public void testDropStatsForDimensions() throws Exception { tieredSpilloverCache.invalidate(dropDimensionsKey); assertEquals(new ImmutableCacheStats(0, 0, 0, 0, 0), tieredSpilloverCache.stats().getTotalStats()); } + public void testSegmentSizesWhenUsingFactory() { // The TSC's tier size settings, TIERED_SPILLOVER_ONHEAP_STORE_SIZE and TIERED_SPILLOVER_DISK_STORE_SIZE, // should always be respected, overriding the individual implementation's size settings if present