lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LUCENE-2740) PerFieldCodecWrapper causes crashes if not all per field codes have been used
Date Wed, 10 Nov 2010 16:54:13 GMT

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


Mime
View raw message