lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5616) remove FieldInfos leniency
Date Fri, 18 Apr 2014 13:23:15 GMT

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

Robert Muir commented on LUCENE-5616:
-------------------------------------

oops: ill fix that. I also  found more missing checks. new patch coming.

> remove FieldInfos leniency
> --------------------------
>
>                 Key: LUCENE-5616
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5616
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-5616.patch
>
>
> The current behavior is sheisty: it always returns null for negative field numbers (without
consulting the map).
> This means if a field number somehow became negative, there would be silent data loss.
> Instead, we should throw exception on negative numbers.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message