JAMWiki
  1. JAMWiki
  2. JAMWIKI-2

org.apache.lucene.store.LockObtainFailedException Errors

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0.1, 1.1
    • Labels:
      None

      Description

      I'm seeing a number of org.apache.lucene.store.LockObtainFailedException errors in the logs. It seems that if Tomcat crashes or some other unexpected shutdown occurs that this lock is never released, and further indexing and search operations fail.

      Possible solutions include not using Lucene locks since there should be only one indexer running, or alternately making sure that all locks are cleared on JAMWiki startup.

        Activity

        Hide
        Ryan Holliday
        added a comment -

        Having thought about this change a bit more, it may make sense to make SimpleFSLockFactory the default for all OS types. There are thread-safety issues according to the Lucene docs, but JAMWiki does not officially support multiple servers so that may not be a major issue. I may revisit this again tonight.

        Show
        Ryan Holliday
        added a comment - Having thought about this change a bit more, it may make sense to make SimpleFSLockFactory the default for all OS types. There are thread-safety issues according to the Lucene docs, but JAMWiki does not officially support multiple servers so that may not be a major issue. I may revisit this again tonight.
        Hide
        Mahyar Sepehr
        added a comment -

        It works with NFS now.
        Great job Ryan! Thanks a lot.

        Show
        Mahyar Sepehr
        added a comment - It works with NFS now. Great job Ryan! Thanks a lot.
        Hide
        Ryan Holliday
        added a comment -

        Thanks for the confirmation and your patience in debugging. The final version of JAMWiki 1.1 should now be ready for release by early next week.

        Show
        Ryan Holliday
        added a comment - Thanks for the confirmation and your patience in debugging. The final version of JAMWiki 1.1 should now be ready for release by early next week.
        Hide
        Mahyar Sepehr
        added a comment -

        Ryan, when are you planning a tag 1.1 and do you know the release version ?

        Show
        Mahyar Sepehr
        added a comment - Ryan, when are you planning a tag 1.1 and do you know the release version ?
        Hide
        Ryan Holliday
        added a comment -

        The final release will almost certainly go out next week. I had been planning to push it this week, but your bug report seemed serious enough to warrant holding the release. I also need to look at a couple of NPEs in the logs and verify whether they are real issues or just spambots messing with form parameters - I'm reasonably certain it's the latter, but I want to confirm before pushing the release out.

        Show
        Ryan Holliday
        added a comment - The final release will almost certainly go out next week. I had been planning to push it this week, but your bug report seemed serious enough to warrant holding the release. I also need to look at a couple of NPEs in the logs and verify whether they are real issues or just spambots messing with form parameters - I'm reasonably certain it's the latter, but I want to confirm before pushing the release out.

          People

          • Assignee:
            Ryan Holliday
            Reporter:
            Ryan Holliday
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: