You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2010/11/04 14:19:44 UTC

[jira] Updated: (LUCENE-2740) PerFieldCodecWrapper causes crashes if not all per field codes have been used

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

Simon Willnauer updated LUCENE-2740:
------------------------------------

    Attachment: LUCENE-2740.patch

these tests trigger the problem

> PerFieldCodecWrapper causes crashes if not all per field codes have been used
> -----------------------------------------------------------------------------
>
>                 Key: LUCENE-2740
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2740
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>             Fix For: 4.0
>
>         Attachments: LUCENE-2740.patch
>
>
> If a PerFieldCodecWrapper is used an SegmentMerger tries to merge two segments where one segment only has a subset of the field PerFieldCodecWrapper defines SegmentMerger tries to open non-existing files since Codec#files(Directory, SegmentInfo, Set<String>) blindly copies the expected files into the given set. This also hits exceptions in CheckIndex and addIndexes(). 
> The reason for this is that PerFieldCodecWrapper simply iterates over the codecs it knows and adds all files without checking if they are present in the given Directory. We need to have some mechnanism that check if the "required" files for a codec are present and only add the files to the set if that field is really there.

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org