Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jena-text to use Lucene in a Java21 compatible way. #2533

Open
afs opened this issue Jun 10, 2024 · 0 comments
Open

Update jena-text to use Lucene in a Java21 compatible way. #2533

afs opened this issue Jun 10, 2024 · 0 comments
Labels
help wanted Pull requests welcome. Text Index

Comments

@afs
Copy link
Member

afs commented Jun 10, 2024

The upgrade of lucene 9.10. -> 9.11.0 #2532 causes the build output below.

Both these warnings need to be addressed by moving the jena-text code forward to the now-preferred Lucene way of doing things.

Building with a Java21 JDK, for release Java17 output:

Lucene 9.10.0:

[INFO] Running org.apache.jena.query.text.assembler.TestTextDatasetAssembler
Jun 10, 2024 11:47:38 AM org.apache.lucene.store.MemorySegmentIndexInputProvider <init>
INFO: Using MemorySegmentIndexInput with Java 21 or later; to disable start with -Dorg.apache.lucene.store.MMapDirectory.enableMemorySegments=false

Lucene 9.11.0:

[INFO] Running org.apache.jena.query.text.assembler.TestTextDatasetAssembler
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

Jun 10, 2024 11:45:22 AM org.apache.lucene.store.MemorySegmentIndexInputProvider <init>
INFO: Using MemorySegmentIndexInput and native madvise support with Java 21 or later; to disable start with -Dorg.apache.lucene.store.MMapDirectory.enableMemorySegments=false

Are you interested in contributing a pull request for this task?

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Pull requests welcome. Text Index
Projects
None yet
Development

No branches or pull requests

1 participant