Skip to content

Commit

Permalink
Also mmap cfs files for hybridfs (#38940) (#38948)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
danielmitterdorfer committed Feb 15, 2019
1 parent f0b967c commit 9295ab3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public IndexInput openInput(String name, IOContext context) throws IOException {
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);
Expand Down

0 comments on commit 9295ab3

Please sign in to comment.