lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Potter (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-6719) NumericUtils.getMinLong and NumericUtils.getMaxLong have undefined behavior when no docs have value - throw NPE
Date Thu, 06 Aug 2015 00:45:04 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-6719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothy Potter updated LUCENE-6719:
-----------------------------------
    Attachment: LUCENE-6719.patch

Here's the updated patch with the lucene/CHANGES.txt entry ... I'm ready to commit this.

> NumericUtils.getMinLong and NumericUtils.getMaxLong have undefined behavior when no docs
have value - throw NPE
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-6719
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6719
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Hoss Man
>            Assignee: Timothy Potter
>         Attachments: LUCENE-6719.patch, LUCENE-6719.patch, LUCENE-6719.patch, LUCENE-6719.patch
>
>
> Tracked down a possible cause of SOLR-7866 to situations where a (numeric) field doesn't
have any values in an index and you try to get the min/max.
> javadocs for NumericUtils.getMinLong and NumericUtils.getMaxLong don't actually say what
that method will do in this case, throw NPE when it happens



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message