lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-1129) ReadTask ignores traversalSize
Date Fri, 11 Jan 2008 17:52:34 GMT
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