mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
This commit is contained in:
parent
36dbf08d47
commit
b6585f2b51
@ -160,7 +160,10 @@ public class FsDirectoryFactory implements IndexStorePlugin.DirectoryFactory {
|
|||||||
// We want to open the terms index and KD-tree index off-heap to save memory, but this only performs
|
// We want to open the terms index and KD-tree index off-heap to save memory, but this only performs
|
||||||
// well if using mmap.
|
// well if using mmap.
|
||||||
case "tip":
|
case "tip":
|
||||||
|
// dim files only apply up to lucene 8.x indices. It can be removed once we are in lucene 10
|
||||||
case "dim":
|
case "dim":
|
||||||
|
case "kdd":
|
||||||
|
case "kdi":
|
||||||
// Compound files are tricky because they store all the information for the segment. Benchmarks
|
// Compound files are tricky because they store all the information for the segment. Benchmarks
|
||||||
// suggested that not mapping them hurts performance.
|
// suggested that not mapping them hurts performance.
|
||||||
case "cfs":
|
case "cfs":
|
||||||
|
@ -64,6 +64,8 @@ public class FsDirectoryFactoryTests extends ESTestCase {
|
|||||||
assertTrue(hybridDirectory.useDelegate("foo.tip"));
|
assertTrue(hybridDirectory.useDelegate("foo.tip"));
|
||||||
assertTrue(hybridDirectory.useDelegate("foo.cfs"));
|
assertTrue(hybridDirectory.useDelegate("foo.cfs"));
|
||||||
assertTrue(hybridDirectory.useDelegate("foo.dim"));
|
assertTrue(hybridDirectory.useDelegate("foo.dim"));
|
||||||
|
assertTrue(hybridDirectory.useDelegate("foo.kdd"));
|
||||||
|
assertTrue(hybridDirectory.useDelegate("foo.kdi"));
|
||||||
assertFalse(hybridDirectory.useDelegate("foo.bar"));
|
assertFalse(hybridDirectory.useDelegate("foo.bar"));
|
||||||
MMapDirectory delegate = hybridDirectory.getDelegate();
|
MMapDirectory delegate = hybridDirectory.getDelegate();
|
||||||
assertThat(delegate, Matchers.instanceOf(FsDirectoryFactory.PreLoadMMapDirectory.class));
|
assertThat(delegate, Matchers.instanceOf(FsDirectoryFactory.PreLoadMMapDirectory.class));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user