lucene-dev mailing list archives

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

                 Key: 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 
int traversalSize = Math.min(hits.length(), traversalSize());
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:
For additional commands, e-mail:

View raw message