lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafał Kuć (JIRA) <j...@apache.org>
Subject [jira] Updated: (SOLR-1246) StatsComponent returing Double.MIN_VALUE when determining maximum value for negativ numbers
Date Thu, 25 Jun 2009 19:16:08 GMT

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

Rafał Kuć updated SOLR-1246:
----------------------------

    Attachment: StatsComponent.java.patch

I`ve added the patch for this. 

> StatsComponent returing Double.MIN_VALUE when determining maximum value for negativ numbers
> -------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1246
>                 URL: https://issues.apache.org/jira/browse/SOLR-1246
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Rafał Kuć
>            Assignee: Noble Paul
>            Priority: Minor
>         Attachments: StatsComponent.java.patch
>
>
> StatsComponent use Double.MIN_VALUE when reseting its variables. Because of that, when
calculating maximum value for negativ numbers max value will always return Double.MIN_VALUE
because it is minimal positive value. Setting max value to Double.NEGATIV_INFINITY in reset
method will resolve the problem. I can provide simple patch for this if needed. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message