some strange WARNING when upgrade form 3.11.3 to 3.12.2 via init command

79 views
Skip to first unread message

Guy Levkowitz

unread,
Sep 28, 2025, 6:33:26 AMSep 28
to Repo and Gerrit Discussion
Hey
when i run below command we get:
 java -jar gerrit3.12.2.war init -d . --batch --delete-caches --install-all-plugins --no-auto-start
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

Sep 28, 2025 1:32:17 PM org.apache.lucene.internal.vectorization.VectorizationProvider lookup
WARNING: Java vector incubator module is not readable. For optimal vector performance, pass '--add-modules jdk.incubator.vector' to enable Vector API.



Is this Ok ? 

Guy Levkowitz

unread,
Sep 28, 2025, 7:02:18 AMSep 28
to Repo and Gerrit Discussion

Also the merge Icon we had was green now it is gray can it be changed back to green ? 

ב-יום ראשון, 28 בספטמבר 2025 בשעה 13:33:26 UTC+3, Guy Levkowitz כתב/ה:
after_upgrade_3.12.2.png
before_upgrade_3.12.2_version3.11.3.png

Matthias Sohn

unread,
Sep 29, 2025, 7:11:17 AMSep 29
to Guy Levkowitz, Repo and Gerrit Discussion
This Java warning is raised for lucene which has some optional implementation using Java vector APIs which are still in incubation in JDK 25
It looks like lucene will fallback to another implementation if prerequisites for usage of Java vector API are not in place.
 


Is this Ok ? 

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/97074e7e-b277-4a8b-98d1-e9351ed7762en%40googlegroups.com.

Yingchun Li

unread,
6:40 AM (9 hours ago) 6:40 AM
to Repo and Gerrit Discussion
Hi, did you resolve these issues?  
I also encountered this issue. I followed the suggestion and ran the command:
java --add-modules jdk.incubator.vector --enable-native-access=ALL-UNNAMED -jar temp/gerrit-3.12.3.war init -d gerrit-home
which indeed eliminated the warning. However, it doesn't seem like a good solution, as it deviates from the command recommended in the official documentation. 
Is this Ok ? 

Matthias Sohn

unread,
10:54 AM (5 hours ago) 10:54 AM
to Yingchun Li, Repo and Gerrit Discussion
Since 10.0.0 Lucene has an implementation of MMapDirectory using Java 21 Project Panama Preview API [1].
I guess that's causing these warnings since in Java 21 the panama API was still in preview.
Gerrit 3.12.2 is using Lucene 10.1.0.


-Matthias

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages