[ 
https://issues.apache.org/jira/browse/JSPWIKI-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17214122#comment-17214122
 ] 

Juan Pablo Santos Rodríguez commented on JSPWIKI-1131:
------------------------------------------------------

Hi again [~uo5waiBil9],

as page indexing seems to be having taking place, but not being applied, I'm 
guessing/suspecting that may be there's a concurrency problem taking place, 
which may be showing only on your installation due to the big page repository 
size. In order to try to pinpoint this condition, 2.11.0-M8-git-02 brings a 
couple of changes on LuceneSearchProvider :

* it is using now NIOFSDirectory instead of (deprecated) SimpleFSDirectory
* all Lucene's index writes are synchronized, whereas reads are not; previously 
only 1 out of 3 writes were synchronized

would you mind testing latest master? also, would you mind trying to see if you 
get this behaviour with a smaller page repository? f.ex. [this 
one|https://search.maven.org/artifact/org.apache.jspwiki.wikipages/jspwiki-wikipages-en/2.11.0.M7/jar].
 Let's see if this helps to identify your issue..

best regards,
juan pablo

> Lucene Index not updated on edits/new page
> ------------------------------------------
>
>                 Key: JSPWIKI-1131
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1131
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.11.0-M7
>         Environment: * Debian 10
>  * Tomcat 9: 9.0.31-1~deb10u2
>  * OpenJDK-JRE 11: 11.0.7+10-3~deb10u1
>  * JSPWiki 2.11.0-M7
>            Reporter: FP
>            Priority: Critical
>             Fix For: 2.11.0-M8
>
>         Attachments: exception.txt, illegal-page-name.txt
>
>
> It seems that the lucene search index is not updated when a user edits an 
> existing page or creates a new page. In both cases, the page is not found 
> when someone searches for it.
> Search works as expected when:
>  * Tomcat is stopped
>  * The files in the {{lucene}} directory are removed
>  * Tomcat is started
>  * Wait until the Lucene Indexer thread finishes reindexing
> The following exception occurs when a page is edited (full stack trace 
> attached):
> {{java.io.NotSerializableException: org.apache.wiki.WikiContext}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to