You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2025/06/30 13:22:00 UTC
[jira] [Commented] (SOLR-17803) Fix native access warning when using MemorySegmentIndexInput
[ https://issues.apache.org/jira/browse/SOLR-17803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17986944#comment-17986944 ]
ASF subversion and git services commented on SOLR-17803:
--------------------------------------------------------
Commit aa435e1aacc2304a4b2443f2591446cb7ebbde6d in solr's branch refs/heads/main from Kevin Risden
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=aa435e1aacc ]
SOLR-17803: Fix native access warning when using MemorySegmentIndexInput (#3360)
> 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
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> #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