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 2008/01/20 17:48:34 UTC

[jira] Updated: (LUCENE-1143) DocumentsWriter.abort fails to clear docStoreOffset

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

Michael McCandless updated LUCENE-1143:
---------------------------------------

    Attachment: LUCENE-1143.patch

Attached patch.  All tests pass.  I created more unit tests in
TestIndexWriter to test hitting a single IOException, at different
points, and then NOT hitting anymore exceptions, and verifying we can
close & open a reader successfully.

The fix itself is trivial and low risk.

I think this is serious enough to re-spin 2.3.  

I will commit shortly to trunk & port to 2.3 branch.


> DocumentsWriter.abort fails to clear docStoreOffset
> ---------------------------------------------------
>
>                 Key: LUCENE-1143
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1143
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 2.3
>
>         Attachments: LUCENE-1143.patch
>
>
> I hit this in working on LUCENE-1044.
> If you disk full event during flush, then DocumentsWriter will abort
> (clear all buffered docs).  Then, if you then add another doc or two,
> and then close your writer, and this time succeed in flushing (say
> because it's only a couple buffered docs so the resulting segment is
> smaller), you can flush a corrupt segment (that incorrectly has a
> non-zero docStoreOffset).
> I modified the TestConcurrentMergeScheduler test to show this bug.
> I'll attach a patch shortly.

-- 
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