[ 
https://issues.apache.org/jira/browse/LUCENE-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13993619#comment-13993619
 ] 

Michael McCandless commented on LUCENE-5662:
--------------------------------------------

+1, awful this can lead to data loss!!

> Missing Field null checks can result in aborted segments
> --------------------------------------------------------
>
>                 Key: LUCENE-5662
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5662
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>             Fix For: 4.8.1, 4.9, 5.0
>
>         Attachments: LUCENE-5662.patch
>
>
> This is bad because you lose other unrelated documents in IndexWriter's 
> buffer.
> Simple example:
> {code}
>       BytesRef v = null; // somehow my app screwed up
>       doc.add(new StoredField("foo", v));
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to