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

Michael McCandless updated LUCENE-3339:
---------------------------------------

    Attachment: LUCENE-3339.patch

Patch attached.

I can't repro this locally, but I think I see the problem: the bulk-add 
(IW.add/updateDocuments) methods cannot pause for the wait queue until after 
all docs in the block are added.  Else, 2 threads could get only partway 
through their block and both would then pause and never resume.

This does not affect trunk because w/ DWPT we no longer have the waitQueue.

The fix is simple: move the pausing out of the loop.  I'll commit shortly.

> TestNRTThreads hangs in nightly 3.x builds
> ------------------------------------------
>
>                 Key: LUCENE-3339
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3339
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Assignee: Michael McCandless
>         Attachments: LUCENE-3339.patch
>
>
> Maybe we have a problem, maybe its a bug in the test.
> But its strange that lately the 3.x nightlies have been hanging here.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to