[ 
https://issues.apache.org/jira/browse/LUCENE-4613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13528896#comment-13528896
 ] 

Renaud Delbru edited comment on LUCENE-4613 at 12/11/12 11:47 AM:
------------------------------------------------------------------

New path with a unit test that checks that partially written files are removed 
if writing abort. 
I had to modify a bit the API of CompressingStoredFieldsFormat to make the test 
possible. Also, CompressingCodec is now always adding a segment suffix. We 
might be bale to improve this by adding or not randomly a segment suffix.
Ant test has been executed and did not report any errors.
                
      was (Author: renaud.delbru):
    New path with a unit test that checks that partially written files are 
removed if writing abort. 
I had to modify a bit the API of CompressingStoredFieldsFormat to make the test 
possible. Also, CompressingCodec is now always adding a segment suffix. We 
might be bale to improve this by adding or not randomly a segment suffix.
                  
> CompressingStoredFieldsWriter ignores the segment suffix if writing aborted
> ---------------------------------------------------------------------------
>
>                 Key: LUCENE-4613
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4613
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/codecs
>    Affects Versions: 4.1
>            Reporter: Renaud Delbru
>             Fix For: 4.1
>
>         Attachments: LUCENE-4613.patch, LUCENE-4613.patch
>
>
> If the writing is aborted, CompressingStoredFieldsWriter does not remove 
> partially-written files as the segment suffix is not taken into consideration.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to