After digging a bit more - why James is using (it seems) ancient Lucene version?
https://github.com/apache/james-project/blob/master/pom.xml#L649 ``` <lucene.version>3.6.2</lucene.version> ``` While latest Lucene version is 9.11.x: https://mvnrepository.com/artifact/org.apache.lucene/lucene-core Wojtek On 30/07/2024 16:12, Wojtek wrote:
We are hitting an issue with James/Lucene that makes the server not working correctly (basically SEARCH stops working). Compacted stactraces: ``` com.github.fge.lambdas.ThrownByLambdaException: org.apache.james.mailbox.exception.MailboxException: Unable to search mailbox mailboxid:144851 at com.github.fge.lambdas.functions.ThrowingFunction.apply(ThrowingFunction.java:21) at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:132) Caused by: org.apache.james.mailbox.exception.MailboxException: Unable to search mailbox mailboxid:144851 at org.apache.james.mailbox.lucene.search.LuceneMessageSearchIndex.createFlagQuery(LuceneMessageSearchIndex.java:1025) Caused by: java.io.IOException: null: NIOFSIndexInput(path="/root/var/store/lucene/_4f7.tis") at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.readInternal(NIOFSDirectory.java:180) Caused by: java.nio.channels.ClosedChannelException: null at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(Unknown Source) at java.base/sun.nio.ch.FileChannelImpl.read(Unknown Source) at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.readInternal(NIOFSDirectory.java:162) ``` (complete: https://gist.github.com/woj-tek/b9eaff6e08eb840610e810c506f48f65) It seems to be caused by https://issues.apache.org/jira/browse/LUCENE-2239 / https://issues.apache.org/jira/browse/LUCENE-2239. Has anyone else ran into the issue (if using Lucene as search)?
--------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org