You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2007/12/20 14:09:45 UTC
[jira] Resolved: (LUCENE-1094) Exception in
DocumentsWriter.addDocument can corrupt stored fields file (fdt)
[ https://issues.apache.org/jira/browse/LUCENE-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-1094.
----------------------------------------
Resolution: Fixed
> Exception in DocumentsWriter.addDocument can corrupt stored fields file (fdt)
> -----------------------------------------------------------------------------
>
> Key: LUCENE-1094
> URL: https://issues.apache.org/jira/browse/LUCENE-1094
> Project: Lucene - Java
> Issue Type: Bug
> Affects Versions: 2.3
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 2.3
>
> Attachments: LUCENE-1094.patch
>
>
> DocumentsWriter writes the number of stored fields, up front, into the
> fdtLocal buffer. Then, as each field is processed, it writes each
> stored field into this buffer. When the document is done, in a
> finally clause, it flushes the buffer to the real fdt file in the
> Directory.
> The problem is, if an exception is hit, that number of stored fields
> can be too high, which corrupts the fdt file.
> The solution is to not write it up front, and instead write only the
> number of fields we actually saw.
--
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