Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5006

Simplify / understand IndexWriter/DocumentsWriter synchronization

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      The concurrency in IW/DW/BD is terrifying: there are many locks involved, not just intrinsic locks but IW also has fullFlushLock, commitLock, and there are no clear rules about lock order to avoid deadlocks like LUCENE-5002.

      We have to somehow simplify this, and define the allowed concurrent behavior eg when an app calls deleteAll while other threads are indexing.

      Attachments

        1. LUCENE-5006.patch
          79 kB
          Simon Willnauer
        2. LUCENE-5006.patch
          78 kB
          Simon Willnauer
        3. LUCENE-5006.patch
          62 kB
          Simon Willnauer

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            simonw Simon Willnauer
            mikemccand Michael McCandless

            Dates

              Created:
              Updated:

              Slack

                Issue deployment