/[Apache-SVN]
ViewVC logotype

Revision 494933


Jump to revision: Previous Next
Author: mikemccand
Date: Wed Jan 10 19:06:36 2007 UTC (17 years, 10 months ago)
Changed paths: 5
Log Message:
LUCENE-140:

  - Add 2 more checks on initializing SegmentReader that raise
    IllegalStateException if corruption is detected.  This would have
    caught the second cause in LUCENE-140 (incorrectly re-using old
    .del files) earlier.

  - Fixed bugs in two unit tests that tripped up on these new checks.

  - Fixed (tightened) one more boundary case (when lastDoc was 0) in
    the pre-existing "docs out of order" check in SegmentMerger.java.

  - Simplified the unit test I added to TestIndexReader to test this
    issue.


Changed paths

Path Details
Directorylucene/java/trunk/src/java/org/apache/lucene/index/SegmentMerger.java modified , text changed
Directorylucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java modified , text changed
Directorylucene/java/trunk/src/test/org/apache/lucene/index/TestDoc.java modified , text changed
Directorylucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReader.java modified , text changed
Directorylucene/java/trunk/src/test/org/apache/lucene/index/TestSegmentTermDocs.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26