lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LUCENE-3100) IW.commit() writes but fails to fsync the N.fnx file
Date Tue, 17 May 2011 09:59:47 GMT

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

Simon Willnauer resolved LUCENE-3100.
-------------------------------------

    Resolution: Fixed

Committed in revision 1104090.

> IW.commit() writes but fails to fsync the N.fnx file
> ----------------------------------------------------
>
>                 Key: LUCENE-3100
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3100
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Simon Willnauer
>             Fix For: 4.0
>
>         Attachments: LUCENE-3100.patch
>
>
> In making a unit test for NRTCachingDir (LUCENE-3092) I hit this surprising bug!
> Because the new N.fnx file is written at the "last minute" along with the segments file,
it's not included in the sis.files() that IW uses to figure out which files to sync.
> This bug means one could call IW.commit(), successfully, return, and then the machine
could crash and when it comes back up your index could be corrupted.
> We should hopefully first fix TestCrash so that it hits this bug (maybe it needs more/better
randomization?), then fix the bug....

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message