[ 
https://issues.apache.org/jira/browse/SOLR-18554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132269#comment-18132269
 ] 

Nick Shanin commented on SOLR-18554:
------------------------------------

I did most of the work for this, let me know if I should share it.

> 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
>            Priority: Minor
>
> 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
(v10.3.26#10030026)

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

Reply via email to