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

LazyField use of IndexInput not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.1
    • core/store
    • None
    • Patch Available

    Description

      Hypothetical problem: IndexInput.clone() of an active IndexInput could result in a corrupt copy.
      LazyField clones the FieldsReader.fieldsStream, which could be in use via IndexReader.document()

      Attachments

        1. TestThreadSafe.java
          5 kB
          Yonik Seeley
        2. FieldsReader.patch
          3 kB
          Yonik Seeley

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yseeley@gmail.com Yonik Seeley
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: