lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eran Sevi (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/LUCENENET-310
             Project: Lucene.Net
          Issue Type: Bug
            Reporter: Eran Sevi


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.


Mime
View raw message