Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8406

Deadlock in Lucene when trying to index a wiki from Search Administration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4-milestone-1
    • Fix Version/s: 4.3-milestone-2
    • Component/s: Search - Generic
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When trying to build the index of the current wiki from the Administration > Applications > Search section, the page keeps loading undefinetly. Opening a new tab to the same page will have the same endless loading effect.

      The problem lies in the fix for the issue XWIKI-7321 that opens an index writer (and an associated lock), but never closes it when it is done deleting documents. This leaves the lock open and future requests will fail to obtain the lock.

      This does not affect searches, but it will prevent new/updated documents from being indexed since any index writing related operation is in deadlock until you restart the wiki.

      Also, this does not affect reindexing the "Entire farm", just reindexing a specific wiki.

      Workaround:
      1. Stop the wiki
      2. Delete the "<permanentDirectory>/lucene" folder containing the index
      3. Restart the wiki.
      The initial indexing will get you an up to date index, but as soon as you want to update the index manually, you will have to repeat steps 1-3).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                enygma Eduard Moraru
                Reporter:
                enygma Eduard Moraru
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: