[ 
https://issues.apache.org/jira/browse/LUCENE-2225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

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: https://issues.apache.org/jira/browse/LUCENE-2225
>             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: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to