Skip to content

Commit 2ab88e2

Browse files
Also mmap cfs files for hybridfs (#38940)
With this commit we add the `.cfs` file extension to the list of file types that are memory-mapped by hybridfs. `.cfs` files combine all files of a Lucene segment into a single file in order to save file handles. As this strategy is only used for "small" segments (less than 10% of the shard size), it is benefical to memory-map them instead of accessing them via NIO. Relates #36668
1 parent f8d86f9 commit 2ab88e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/elasticsearch/index/store/FsDirectoryService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public IndexInput openInput(String name, IOContext context) throws IOException {
144144
case "nvd":
145145
case "dvd":
146146
case "tim":
147+
case "cfs":
147148
// we need to do these checks on the outer directory since the inner doesn't know about pending deletes
148149
ensureOpen();
149150
ensureCanRead(name);

0 commit comments

Comments
 (0)