[ 
https://issues.apache.org/jira/browse/LUCENENET-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782455#action_12782455
 ] 

Andrei Iliev commented on LUCENENET-310:
----------------------------------------

I think it is the same as in LUCENENET-287

> SegmentInfos class is not equatable
> -----------------------------------
>
>                 Key: LUCENENET-310
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-310
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Eran Sevi
>         Attachments: SegmentInfos.patch
>
>
> SegmentInfos class currently inherits from ArrayList which fails equations 
> checks on this class.
> Test scenario:
> 1. Open an IndexWriter on an existing index. 
> 2. get reader from IndexWriter by calling IndexWriter.GetReader().
> 2. run reader.IsCurrent()
> Results:
> IsCurrent method returns false although the reader is indeed current.
> This is caused because IsCurrent() calls IndexWriter.NrtIsCurrent() which 
> tries to match two equal SegmentInfos lists using the Equals method.
> The method returns false although the lists are identical.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to