[ 
https://issues.apache.org/jira/browse/LUCENE-4084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284948#comment-13284948
 ] 

Robert Muir commented on LUCENE-4084:
-------------------------------------

{noformat}
  [junit4] ERROR   0.23s | TestBackwardsCompatibility.testCreateCFS
   [junit4]    > Throwable #1: 
org.apache.lucene.util.SetOnce$AlreadySetException: The object cannot be set 
twice!
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([2ADDAAF27DE7C63D:38D013F5650FDD60]:0)
   [junit4]    >        at org.apache.lucene.util.SetOnce.set(SetOnce.java:69)
   [junit4]    >        at 
org.apache.lucene.index.DocumentsWriterPerThreadPool.initialize(DocumentsWriterPerThreadPool.java:139)
   [junit4]    >        at 
org.apache.lucene.index.DocumentsWriter.<init>(DocumentsWriter.java:145)
   [junit4]    >        at 
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:668)
   [junit4]    >        at 
org.apache.lucene.index.TestBackwardsCompatibility.createIndex(TestBackwardsCompatibility.java:464)
   [junit4]    >        at 
org.apache.lucene.index.TestBackwardsCompatibility.testCreateCFS(TestBackwardsCompatibility.java:78)
{noformat}
                
> unable to generate a 4.x back compat test index
> -----------------------------------------------
>
>                 Key: LUCENE-4084
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4084
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/index
>            Reporter: Robert Muir
>             Fix For: 4.0
>
>
> It seems the issue is an IWC cannot be used across 2 different indexwriters, 
> because the DWPTThreadPool is created on the IndexWriterConfig, and you hit a 
> SetOnce exception... seems like the exception is correct and it would be bad 
> to have two indexwriters sharing the same DWPTThreadPool?
> stacktrace to follow in a comment.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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