lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1129) ReadTask ignores traversalSize
Date Fri, 11 Jan 2008 20:32:34 GMT

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

Doron Cohen commented on LUCENE-1129:
-------------------------------------

{quote}
so we just need to use this value in the loop condition.
{quote}
+1

> ReadTask ignores traversalSize
> ------------------------------
>
>                 Key: LUCENE-1129
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1129
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/benchmark
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>
> The ReadTask doLogic() method ignores the value of the traversalSize and loops over hits.length()
instead, thus falsely reporting the desired number of iterations through the hit list.
> The fix is relatively trivial since we already calculate 
> {code}
> int traversalSize = Math.min(hits.length(), traversalSize());
> {code}
> so we just need to use this value in the loop condition.

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


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


Mime
View raw message