Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/130308.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 130308
summary: Force niofs for fdt tmp file read access when flushing stored fields
area: Logs
type: bug
issues: []
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,6 @@ tests:
- class: org.elasticsearch.qa.verify_version_constants.VerifyVersionConstantsIT
method: testLuceneVersionConstant
issue: https://github.com/elastic/elasticsearch/issues/125638
- class: org.elasticsearch.index.store.FsDirectoryFactoryTests
method: testPreload
issue: https://github.com/elastic/elasticsearch/issues/129852
- class: org.elasticsearch.xpack.rank.rrf.RRFRankClientYamlTestSuiteIT
method: test {yaml=rrf/950_pinned_interaction/rrf with pinned retriever as a sub-retriever}
issue: https://github.com/elastic/elasticsearch/issues/129845
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public class FsDirectoryFactory implements IndexStorePlugin.DirectoryFactory {

private static final Logger Log = LogManager.getLogger(FsDirectoryFactory.class);
private static final FeatureFlag MADV_RANDOM_FEATURE_FLAG = new FeatureFlag("madv_random");
private static final FeatureFlag TMP_FDT_NO_MMAP_FEATURE_FLAG = new FeatureFlag("tmp_fdt_no_mmap");

public static final Setting<LockFactory> INDEX_LOCK_FACTOR_SETTING = new Setting<>("index.store.fs.fs_lock", "native", (s) -> {
return switch (s) {
Expand Down Expand Up @@ -261,8 +260,7 @@ static boolean useDelegate(String name, IOContext ioContext) {
* @return whether to avoid using delegate if the file is a tmp fdt file.
*/
static boolean avoidDelegateForFdtTempFiles(String name, LuceneFilesExtensions extension) {
// NOTE, for now gated behind feature flag to observe impact of this change in benchmarks only:
return TMP_FDT_NO_MMAP_FEATURE_FLAG.isEnabled() && extension == LuceneFilesExtensions.TMP && name.contains("fdt");
return extension == LuceneFilesExtensions.TMP && name.contains("fdt");
}

MMapDirectory getDelegate() {
Expand Down
Loading