lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eran Sevi (JIRA)" <>
Subject [jira] Created: (LUCENENET-310) SegmentInfos class is not equatable
Date Wed, 25 Nov 2009 13:44:39 GMT
SegmentInfos class is not equatable

                 Key: LUCENENET-310
             Project: Lucene.Net
          Issue Type: Bug
            Reporter: Eran Sevi

SegmentInfos class currently inherits from ArrayList which fails equations checks on this

Test scenario:
1. Open an IndexWriter on an existing index. 
2. get reader from IndexWriter by calling IndexWriter.GetReader().
2. run reader.IsCurrent()

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.

View raw message