Woops!  Thanks Michael.

Mike

On Mar 12, 2008, at 5:46 PM, Michael Busch (JIRA) wrote:


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

Michael Busch updated LUCENE-1226:
----------------------------------

    Attachment: lucene-1226.patch

IndexWriter.addIndexes(IndexReader[]) fails to create compound files
--------------------------------------------------------------------

                Key: LUCENE-1226
URL: https://issues.apache.org/jira/browse/ LUCENE-1226
            Project: Lucene - Java
         Issue Type: Bug
         Components: Index
   Affects Versions: 2.3, 2.3.1
           Reporter: Michael Busch
           Assignee: Michael Busch
           Priority: Minor
            Fix For: 2.3.2, 2.4

        Attachments: lucene-1226.patch


Even if no exception is thrown while writing the compound file at the end of the addIndexes() call, the transaction is rolled back and the successfully written cfs
file deleted. The fix is simple: There is just the
{code:java}
success = true;
{code}
statement missing at the end of the try{} clause.
All tests pass. I'll commit this soon to trunk and 2.3.2.

--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to