Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

[jira] Resolved: (LUCENE-1376) sometimes if a BG merge hits an exception, optimize() will fail to forward the exception

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Sep 4, 2008, 4:15 AM

Post #1 of 1 (145 views)
Permalink
[jira] Resolved: (LUCENE-1376) sometimes if a BG merge hits an exception, optimize() will fail to forward the exception

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

Michael McCandless resolved LUCENE-1376.
----------------------------------------

Resolution: Fixed

Committed revision 691964.

> sometimes if a BG merge hits an exception, optimize() will fail to forward the exception
> ----------------------------------------------------------------------------------------
>
> Key: LUCENE-1376
> URL: https://issues.apache.org/jira/browse/LUCENE-1376
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.3
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Trivial
> Fix For: 2.4
>
> Attachments: LUCENE-1376.patch
>
>
> I was seeing an intermittant failure, only on a Windows instance running inside VMWare, of TestIndexWriter.testAddIndexOnDiskFull.
> It is happening because the while loop that checks for merge exceptions that had occurred during optimize fails to catch the case where all the BG optimize merges completed (or hit exceptions) before the while loop begins. IE, all BG threads finished before the FG thread advanced to the while loop. In that case the code fails to check if there were any exceptions.
> The fix is straightforward: change the while loop so that it always checks, at least once, whether there were exceptions.

--
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-unsubscribe[at]lucene.apache.org
For additional commands, e-mail: java-dev-help[at]lucene.apache.org

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.