Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

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

        Activity

        Hide
        Uwe Schindler added a comment -

        Patch that fixes this issue. I will port to backwards, too.

        Show
        Uwe Schindler added a comment - Patch that fixes this issue. I will port to backwards, too.
        Hide
        Uwe Schindler added a comment -

        This patch also fixes incorrect multi-threaded use of a boolean variable. I made it volatile.

        Show
        Uwe Schindler added a comment - This patch also fixes incorrect multi-threaded use of a boolean variable. I made it volatile.
        Hide
        Michael McCandless added a comment -

        Ugh!

        Looks good Uwe. Thanks!

        Show
        Michael McCandless added a comment - Ugh! Looks good Uwe. Thanks!
        Hide
        Uwe Schindler added a comment -

        Patch for bw branch.

        I will commit soon.

        Show
        Uwe Schindler added a comment - Patch for bw branch. I will commit soon.
        Hide
        Uwe Schindler added a comment -

        If we want to enable builds of 3.0 or 2.9 branch on hudson, we must backport this.

        Show
        Uwe Schindler added a comment - If we want to enable builds of 3.0 or 2.9 branch on hudson, we must backport this.
        Hide
        Uwe Schindler added a comment -

        small update in patches (while loop).

        Show
        Uwe Schindler added a comment - small update in patches (while loop).
        Hide
        Uwe Schindler added a comment -

        Committed revision: 892216

        Show
        Uwe Schindler added a comment - Committed revision: 892216

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development