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

LazyField use of IndexInput not thread safe

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. FieldsReader.patch
          3 kB
          Yonik Seeley
        2. TestThreadSafe.java
          5 kB
          Yonik Seeley

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: