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

LazyField use of IndexInput not thread safe

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: core/store
    • Labels:
      None
    • Lucene Fields:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: