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

Reply via email to