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

Simplify / understand IndexWriter/DocumentsWriter synchronization

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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
          62 kB
          Simon Willnauer
        2. LUCENE-5006.patch
          78 kB
          Simon Willnauer
        3. LUCENE-5006.patch
          79 kB
          Simon Willnauer

          Activity

            People

            • Assignee:
              simonw Simon Willnauer
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: