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

Simplify / understand IndexWriter/DocumentsWriter synchronization

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

          People

            simonw Simon Willnauer
            mikemccand Michael McCandless
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: