lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Updated: (LUCENE-2225) TestPerfTasksLogic.testBGSearchTaskThreads sometimes runs forever
Date Mon, 18 Jan 2010 10:04:54 GMT


Michael McCandless updated LUCENE-2225:

    Attachment: LUCENE-2225.patch

I found one possible hazard (patch should fix it), where if the child threads take a very
long time to get started, such that the waiting thread had finished waiting and then set stopNow
to true, the child threads then overwrite that true with false, and never exit.

Attached patch changes child threads to not overwrite stopNow to false, except when they see
the true and have exited their for loop.

> TestPerfTasksLogic.testBGSearchTaskThreads sometimes runs forever
> -----------------------------------------------------------------
>                 Key: LUCENE-2225
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/benchmark
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 3.1
>         Attachments: LUCENE-2225.patch
> This appears to happen because hudson is very started, so, threads get scheduled in "interesting"
ways.  It's actually a good test case.

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