Also mmap cfs files for hybridfs (#38940) (#38947)

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
This commit is contained in:
Daniel Mitterdorfer 2019-02-15 15:34:40 +01:00 committed by GitHub
parent 9357c17288
commit fcc7f553f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -144,6 +144,7 @@ public class FsDirectoryService extends DirectoryService {
case "nvd":
case "dvd":
case "tim":
case "cfs":
// we need to do these checks on the outer directory since the inner doesn't know about pending deletes
ensureOpen();
ensureCanRead(name);