Lucene - Core
  1. Lucene - Core
  2. LUCENE-1348

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

    Details

    • Type: Test Test
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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.

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12561866 ] jira [ 12582927 ]
        Mark Thomas made changes -
        Workflow jira [ 12436589 ] Default workflow, editable Closed status [ 12561866 ]
        Doron Cohen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Doron Cohen made changes -
        Field Original Value New Value
        Attachment LUCENE-1348.patch [ 12387422 ]
        Doron Cohen created issue -

          People

          • Assignee:
            Doron Cohen
            Reporter:
            Doron Cohen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development