Nick Shanin created SOLR-18554:
----------------------------------

             Summary: Audit IOContext hints on Directory opens in Solr core
                 Key: SOLR-18554
                 URL: https://issues.apache.org/jira/browse/SOLR-18554
             Project: Solr
          Issue Type: Improvement
          Components: Backup/Restore, replication (java)
            Reporter: Nick Shanin


Lucene's {{IOContext}} hint tells the Directory how a file will be read. Solr 
core opens many files without a specific hint, which means the default. Some of 
those files are read once, sequentially, and closed. For those reads, Lucene 
provides a hint built for single reads, and SOLR-18551 showed that the hint 
choice affects how memory-mapped reads are retained.

This ticket covers auditing Solr core's Directory opens and applying the 
single-read hint where a file is read once. It does not cover choosing a 
different Directory implementation, and it should not change any behavior 
visible to users.

Done when every open in solr-core has been checked for its read pattern, the 
single-read hint is applied where the pattern is one read, and the focused 
tests for backup, snapshot, replication, and core startup pass.

AI-generated, human-reviewed text.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to