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

Simon Willnauer resolved LUCENE-2740.
-------------------------------------

    Resolution: Fixed

LUCENE-2742 fixed that 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
>            Assignee: 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to