Lucene - Core
  1. Lucene - Core
  2. LUCENE-5662

Missing Field null checks can result in aborted segments

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.1, 4.9, master
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This is bad because you lose other unrelated documents in IndexWriter's buffer.

      Simple example:

            BytesRef v = null; // somehow my app screwed up
            doc.add(new StoredField("foo", v));
      

        Activity

        Robert Muir made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.8.1 [ 12326792 ]
        Fix Version/s 4.9 [ 12326730 ]
        Fix Version/s 5.0 [ 12321663 ]
        Resolution Fixed [ 1 ]
        Robert Muir made changes -
        Field Original Value New Value
        Attachment LUCENE-5662.patch [ 12644106 ]
        Robert Muir created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development