Re: lucene index deleted on restart

Benoit TELLIER <[email protected]>
Newsgroups gmane.comp.jakarta.james.user
Message-ID <[email protected]>
Hello Mihai,

I reproduced the behaviour you mentionned on my side.

 - Start the demo image
 - append a few mails

List files. There is some Lucene files:



-rw-r--r-- 1 root root 3.1K Jul 20 02:10 _k.fdt
-rw-r--r-- 1 root root  308 Jul 20 02:10 _k.fdx
-rw-r--r-- 1 root root  871 Jul 20 02:10 _k.fnm
-rw-r--r-- 1 root root 6.1K Jul 20 02:10 _k.frq
-rw-r--r-- 1 root root 1.6K Jul 20 02:10 _k.nrm
-rw-r--r-- 1 root root 4.5K Jul 20 02:10 _k.prx
-rw-r--r-- 1 root root  145 Jul 20 02:10 _k.tii
-rw-r--r-- 1 root root 9.5K Jul 20 02:10 _k.tisDo a search:

$ openssl s_client -host 127.0.0.1 -port 993
[...]
a0 LOGIN [email protected] 1234
a0 OK LOGIN completed.
a1 SELECT Drafts
[...]
a3 SEARCH SEEN
* SEARCH 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
* 1 FETCH (FLAGS (\Draft \Seen))
* 2 FETCH (FLAGS (\Draft \Seen))
* 3 FETCH (FLAGS (\Draft \Seen))
* 19 FETCH (FLAGS (\Draft \Seen))
a3 OK SEARCH completed.
 - Restart James

Then I noticed:

 - Lucene files disappeared
 - Search no longer yield results

$ openssl s_client -host 127.0.0.1 -port 993
[...]
a0 LOGIN [email protected] 1234
a0 OK LOGIN completed.
a1 SELECT Drafts
[...]
a3 SEARCH SEEN
a3 OK SEARCH completed.
According to me, deletion of the Lucene files caused the alteration of the search results.
I do not understand yet what caused the files to disapear, and is looking for "why".

--


Best regards,



Benoit TELLIER



General manager of Linagora VIETNAM.

Product owner for Team-Mail product.

Chairman of the Apache James project.



Mail: [email protected]

Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)

On Jul 19, 2023 7:33 PM, from Mihai Zamfira hello,
on apache james 3.8.0 Jpa-guice with external rdbms i notice that when the Apache James server is restarted, the lucene indexes are deleted.
is this normal behavior?

Thanks!



---------------------------------------------------------------------
To unsubscribe, e-mail: <a href="mailto:[email protected]">[email protected]</a>
For additional commands, e-mail: <a href="mailto:[email protected]">[email protected]</a>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.