lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-1251) on disk full during close, FSIndexOutput fails to close descriptor
Date Fri, 28 Mar 2008 18:54:24 GMT
on disk full during close, FSIndexOutput fails to close descriptor
------------------------------------------------------------------

                 Key: LUCENE-1251
                 URL: https://issues.apache.org/jira/browse/LUCENE-1251
             Project: Lucene - Java
          Issue Type: Bug
    Affects Versions: 2.3.1, 2.3, 2.2, 2.1, 2.0.0, 1.9
            Reporter: Michael McCandless
            Assignee: Michael McCandless
            Priority: Minor
             Fix For: 2.3.2, 2.4


The close method just does this:

{code}
      if (isOpen) {
        super.close();
        file.close();
        isOpen = false;
      }
{code}

But super.close = BufferedIndexOutput.close, which tries to flush its buffer.  If disk is
full (or something else is wrong) then we hit an exception and don't actually close the descriptor.

I will put a try/finally in so we always close, taking care to preserve the original exception.
I'll commit shortly & backport to 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message