Re: Lucene 10, Incubator Vector: warnings I'd like to suppress, and a question
Michael Sokolov <[email protected]> Tue, 9 Dec 2025 11:45:32 -0500
| Newsgroups | gmane.comp.jakarta.lucene.user |
|---|---|
| Message-ID | <CAGUSZHAxpmFxJK0j4yY7gsZv37cpaMO6KAJOhjprW-1q24dLVw@mail.gmail.com> |
It's surprising that you would see so many messages from your search application since the provider only logs these warnings when it is created as a singleton, so I think that must mean you are running many jvms? To answer your Q: I don't know how to disable the naggy warnings either On Tue, Dec 9, 2025 at 9:49=E2=80=AFAM Trevor Nicholls <[email protected]> wrote: > > I recently upgraded our application from v8.6.3 to v10, and advanced to J= ava > 21, and I immediately got both build and runtime errors and warnings abou= t > vector incubators etc. > > > > The warnings when I built the Lucene index suggested that I add > "--add-modules jdk.incubator.vector" to the java commandline. > > > > Our application doesn't use any vector data types and so far as I know it > doesn't do any vector type comparisons either. Nevertheless I added this = to > the commandline and I got a different message on execution: > > > > [date & time] > org.apache.lucene.internal.vectorization.PanamaVectorizationProvider <ini= t> > > INFO: Java vector incubator API enabled: uses preferredBitSize=3D512; FMA > enabled > > > > This goes to stderr, and I'd prefer to suppress it somehow. > > > > The Lucene doco suggested that I could disable the FMA vector extension b= y > using the commandline option "-Dlucene.useVectorFMA=3Dfalse" but this jus= t > generated a different series of messages to the error log. > > > > So far this is a trivial complaint that I wouldn't raise because the inde= xes > are not built at a high frequency and these unnecessary message lines don= 't > do any damage. > > > > However the application which performs the searches is also generating er= ror > output. If I include the --add-modules jdk.incubator.vector parameters, > every search request adds the lines > > > > WARNING: Using incubator modules: jdk.incubator.vector > > [date & time] > org.apache.lucene.internal.vectorization.PanamaVectorizationProvider <ini= t> > > INFO: Java vector incubator API enabled; uses preferredBitSize=3D256; FMA > enabled > > > > to the error channel. Now this is a problem because the error file grows > like Topsy and any real errors in it are apt to get missed. > > > > I don't really need to be told every time that I'm using vectorization > (although I'm not!) because I explicitly put it on the commandline. I onl= y > expect to see a warning if something is wrong. > > > > So that's the first question; is there some magical incantation that will > allow Lucene to think it's using vectorization and still keep the error l= og > clean? > > > > The second question is one that probably reveals profound ignorance. The > option I was prompted to add to the application commandline refers to a j= dk > module. > > I'm building and testing this on a machine with the full JDK but it will = be > deployed to machines that currently only have the JRE. Do I need the JDK > installed everywhere? > > > > cheers > > T > > > > > > > > >