[ 
https://issues.apache.org/jira/browse/SOLR-17803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Risden updated SOLR-17803:
--------------------------------
    Status: Patch Available  (was: Open)

> Fix native access warning when using MemorySegmentIndexInput
> ------------------------------------------------------------
>
>                 Key: SOLR-17803
>                 URL: https://issues.apache.org/jira/browse/SOLR-17803
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Kevin Risden
>            Assignee: Kevin Risden
>            Priority: Minor
>
> #3285 fixed the native access warning for tests but when using bin/solr the 
> native warning is still there.
> {code:java}
> WARNING: A restricted method in java.lang.foreign.Linker has been called
> WARNING: java.lang.foreign.Linker::downcallHandle has been called by the 
> unnamed module
> WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for this 
> module
> 2025-05-22 02:17:10.875 INFO  (main) [c: s: r: x: t:] 
> o.a.l.s.MemorySegmentIndexInputProvider Using MemorySegmentIndexInput and 
> native madvise support with Java 21 or later; to disable start with 
> -Dorg.apache.lucene.store.MMapDirectory.enableMemorySegments=false
> {code}
> This fixes it by passing in the flag similar to how vector module was enabled.



--
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