You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit changes the current cache range size from 32kb to 32mb
and makes it configurable through a globally defined xpack.searchable.
snapshot.cache.range_size setting. This setting is set to low values in
unit tests (see #50693) but a bit higher values in integration tests so
that they don't take too much time to complete.
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/SearchableSnapshots.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,8 @@ public List<Setting<?>> getSettings() {
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheFile.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,6 @@ public interface EvictionListener {
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheService.java
+37-5Lines changed: 37 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -18,24 +18,42 @@
18
18
19
19
importjava.nio.file.Files;
20
20
importjava.nio.file.Path;
21
+
importjava.util.Objects;
21
22
importjava.util.function.Predicate;
22
23
23
24
/**
24
25
* {@link CacheService} maintains a cache entry for all files read from cached searchable snapshot directories (see {@link CacheDirectory})
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/SearchableSnapshotsIntegTests.java
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheBufferedIndexInputTests.java
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheFileTests.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ public class CacheFileTests extends ESTestCase {
0 commit comments