Hi Wojtek,
No problem :) Don't hesitate to ask questions as well if needed!
Thanks for taking a look at this if you can.
Rene.
On 7/31/24 3:08 PM, Wojtek wrote:
Hi Rene,
thank you for the reply. I should have searched better the PRs (I
spend yesterday afternoon trying to adjust the implementation to the
newer version :) ).
I'll definitelly take a look at the PR and try to figure out remaining
issues.
Wojtek
On 31/07/2024 03:52, Rene Cordier wrote:
Hi Wojtek,
Yes the version of Lucene being used is still quite old.
Honestly a colleague of mine and myself tried to take a crack at
upgrading it to the latest version recently. Almost done but there
was one thing not working in our attempt, it seemed that when
updating a document (normally lucene would delete the old one and
create a new one with the update), the old record isn't deleted (at
least in the tests, thus some fails). With the flags document.
Unfortunately other bigger priorities came up and had to let that on
the side for now.
But if you want to take a look or even help finishing the upgrade,
have a look at the PR here:
https://github.com/apache/james-project/pull/2342
Also link to the JIRA: https://issues.apache.org/jira/browse/JAMES-4046
Hope this can help.
Regards,
Rene.
On 7/30/24 9:49 PM, Wojtek wrote:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org