You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Pierre Salagnac (Jira)" <ji...@apache.org> on 2025/07/08 09:48:00 UTC

[jira] [Closed] (SOLR-17802) Fix native access warning when using MemorySegmentIndexInput

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

Pierre Salagnac closed SOLR-17802.
----------------------------------

> Fix native access warning when using MemorySegmentIndexInput
> ------------------------------------------------------------
>
>                 Key: SOLR-17802
>                 URL: https://issues.apache.org/jira/browse/SOLR-17802
>             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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org