Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2170

Thread starvation problems in some tests

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      In some of the tests, a time limit is set and the tests have a "while (inTime)" loop. If creation of thread under heavy load is too slow, the tasks are not done. Most tests are only useful, if the task is at least done once (most would even fail).

      This thread changes the loops to be do...while, so the task is run at least one time.

        Attachments

        1. LUCENE-2170.patch
          9 kB
          Uwe Schindler
        2. LUCENE-2170-tag.patch
          8 kB
          Uwe Schindler
        3. LUCENE-2170.patch
          9 kB
          Uwe Schindler
        4. LUCENE-2170-tag.patch
          8 kB
          Uwe Schindler

          Activity

            People

            • Assignee:
              thetaphi Uwe Schindler
              Reporter:
              thetaphi Uwe Schindler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: