Wojtek Kozaczynski created LUCENE-6176: ------------------------------------------
Summary: Modify FSIndexOutpue in FSDirectory to pen output steam for Write and Read Key: LUCENE-6176 URL: https://issues.apache.org/jira/browse/LUCENE-6176 Project: Lucene - Core Issue Type: Improvement Components: core/store Affects Versions: 4.10.2 Environment: Windows Reporter: Wojtek Kozaczynski Fix For: 4.10.2 The FSIndexOutput, in FSDirecotry, opens the output file stream for Write/Append (W/A), but no Read. This is an issue when Windos wites to remote files. For local storage files the Windows cache manager is part of the kernel and can read from the file even if it is opened for W/A only (and it needs to read the current content of the page). When accessing remote files, like SMB shares, the cache manager is restricted to the access mode requested from the remote system. In this case since it is W/A every write, even a single byte, is a roundtrip to the remote storage server. Openning the output file stream for Write and Read, which does not impact other functionality, allows Windows to cache the individual Lucene writes regadless of their size -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org