[ 
https://issues.apache.org/jira/browse/LUCENENET-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741903#action_12741903
 ] 

Digy commented on LUCENENET-189:
--------------------------------

Surrounding docWriter.ResumeAllThreads (in final blocks of AddIndexes & 
AddIndexesNoOptimize)  with a try-catch block  seems to solve the problem.  But 
java version doesn't have this try-catch block and It is also possible that 
this may hide some serious bug(s).

DIGY

> Occasional failures in TestIndexWriter/TestAddIndexesWithCloseNoWait
> --------------------------------------------------------------------
>
>                 Key: LUCENENET-189
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-189
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: v2.4.0
>            Reporter: Digy
>
> {code}
> finally
> {
>      docWriter.ResumeAllThreads();    //<--- docWriter is null
> }
> {code}
> Object reference not set to an instance of an object.
>    at Lucene.Net.Index.IndexWriter.AddIndexes(Directory[] dirs) in 
> .......\src\Lucene.Net\Index\IndexWriter.cs:line 3033
>    at Lucene.Net.Index.TestIndexWriter.CommitAndAddIndexes3.DoBody(Int32 j, 
> Directory[] dirs)
>    at Lucene.Net.Index.TestIndexWriter.AddIndexesThread.Run()
> DIGY

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to