Issue Details (XML | Word | Printable)

Key: LUCENE-1348
Type: Test Test
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Doron Cohen
Reporter: Doron Cohen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

TestTimeLimitedCollector shuold not fail if the testing machine happens to be slow

Created: 03/Aug/08 02:47 PM   Updated: 05/Aug/08 07:58 AM
Return to search
Component/s: Search
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LUCENE-1348.patch 2008-08-03 03:23 PM Doron Cohen 2 kB

Lucene Fields: New
Resolution Date: 05/Aug/08 07:58 AM


 Description  « Hide
The test fails on Hudson about once a month, like this:

[junit] Testcase: testTimeoutNotGreedy(org.apache.lucene.search.TestTimeLimitedCollector): FAILED
[junit] lastDoc=21 ,&& allowed=799 ,&& elapsed=900 >= 886 = ( 2*resolution + TIME_ALLOWED + SLOW_DOWN = 2*20 + 799 + 47)
[junit] junit.framework.AssertionFailedError: lastDoc=21 ,&& allowed=799 ,&& elapsed=900 >= 886 = ( 2*resolution + TIME_ALLOWED + SLOW_DOWN = 2*20 + 799 + 47)
[junit] at org.apache.lucene.search.TestTimeLimitedCollector.doTestTimeout(TestTimeLimitedCollector.java:189)
[junit] at org.apache.lucene.search.TestTimeLimitedCollector.testTimeoutNotGreedy(TestTimeLimitedCollector.java:150)
[junit]
[junit]
[junit] Test org.apache.lucene.search.TestTimeLimitedCollector FAILED

Modify the test to just print a warning in this case - but still verify that there was an early termination.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Doron Cohen made changes - 03/Aug/08 03:23 PM
Field Original Value New Value
Attachment LUCENE-1348.patch [ 12387422 ]
Doron Cohen made changes - 05/Aug/08 07:58 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]