This is an automated email from the ASF dual-hosted git repository.
krisden pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new c31941412eb SOLR-17803: Fix native access warning when using
MemorySegmentIndexInput (#3360)
c31941412eb is described below
commit c31941412eb90d3a981c3601d2679851b4c4f6fe
Author: Kevin Risden <[email protected]>
AuthorDate: Mon Jun 30 09:21:47 2025 -0400
SOLR-17803: Fix native access warning when using MemorySegmentIndexInput
(#3360)
---
solr/CHANGES.txt | 2 ++
solr/bin/solr | 2 ++
solr/bin/solr.cmd | 2 ++
3 files changed, 6 insertions(+)
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index facf2b07d94..41080a1d73c 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -190,6 +190,8 @@ Other Changes
instead of LinkedHashMap. Intended to aid in 10.x compatibility. Enable
via sys prop: solr.solrj.javabin.readMapAsNamedList=true
(Renato Haeberli, David Smiley)
+* SOLR-17803: Fix native access warning when using MemorySegmentIndexInput
(Kevin Risden)
+
================== 9.8.1 ==================
Bug Fixes
---------------------
diff --git a/solr/bin/solr b/solr/bin/solr
index ff97eda9425..6b44b4eb13e 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -1402,6 +1402,8 @@ function start_solr() {
# This will need to change as Lucene is upgraded and newer Java versions are
released
if [[ "$JAVA_VER_NUM" -ge "20" ]] && [[ "$JAVA_VER_NUM" -le "21" ]] ; then
SCRIPT_SOLR_OPTS+=("--add-modules" "jdk.incubator.vector")
+ # Support native madvise for MemorySegmentIndexInputProvider
+ SCRIPT_SOLR_OPTS+=("--enable-native-access=ALL-UNNAMED")
echo "Java $JAVA_VER_NUM detected. Incubating Panama Vector APIs have been
enabled"
fi
diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd
index 35c98db4922..5cf1ad7d8c1 100755
--- a/solr/bin/solr.cmd
+++ b/solr/bin/solr.cmd
@@ -1102,6 +1102,8 @@ REM Vector optimizations are only supported for Java 20
and 21 for now.
REM This will need to change as Lucene is upgraded and newer Java versions are
released
if !JAVA_MAJOR_VERSION! GEQ 20 if !JAVA_MAJOR_VERSION! LEQ 21 (
set SCRIPT_SOLR_OPTS=%SCRIPT_SOLR_OPTS% --add-modules jdk.incubator.vector
+ REM Support native madvise for MemorySegmentIndexInputProvider
+ set SCRIPT_SOLR_OPTS=%SCRIPT_SOLR_OPTS% --enable-native-access=ALL-UNNAMED
echo Java %JAVA_MAJOR_VERSION% detected. Incubating Panama Vector APIs have
been enabled
)