lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renaud Delbru (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4613) CompressingStoredFieldsWriter ignores the segment suffix if writing aborted
Date Tue, 11 Dec 2012 15:47:22 GMT


Renaud Delbru commented on LUCENE-4613:

Yes I think it'd be even better. You can use _TestUtil#randomSimpleString(Random, int maxLength).

In fact, using random segment suffix is very difficult to achieve, as we cannot ensure that
the codec instantiated through SPI will get the same segment suffix as the codec instantiated
in the {{TestCompressingStoredFieldsFormat#setUp()}, and therefore the {{_TestUtil#checkIndex(Directory
dir)}} will fail. The segment suffix must be deterministic, e.g., similar to the current solution
using the formatName as segment suffix.
> CompressingStoredFieldsWriter ignores the segment suffix if writing aborted
> ---------------------------------------------------------------------------
>                 Key: LUCENE-4613
>                 URL:
>             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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message