You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Doron Cohen (JIRA)" <ji...@apache.org> on 2008/01/11 21:32:34 UTC

[jira] Commented: (LUCENE-1129) ReadTask ignores traversalSize

    [ 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