apache / apache/lucene

Add test for IndexFormatTooOldException if a commit has a 3.x segment [LUCENE-6213]

Open
#7,275 32 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Major type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

We should add a 4.x index (4.x commit) with some 3.x segment(s) to our backwards tests.

I don't think we throw IndexFormatTooOldException correctly in this case. I think instead the user will get a confusing SPI error about a missing codec "Lucene3x".

---
Migrated from [LUCENE-6213](https://issues.apache.org/jira/browse/LUCENE-6213) by Robert Muir (@rmuir), updated Apr 29 2015
Attachments: [LUCENE-6213.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-6213/LUCENE-6213.patch) (versions: 3), [unsupported.4x-with-3x-segments.zip](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-6213/unsupported.4x-with-3x-segments.zip)

Contributor guide

Open the contributing guide

Research direction

Start with Lucene's backwards-compatibility tests and the attached unsupported.4x-with-3x-segments.zip; reproduce opening the 4.x commit containing 3.x segments. Verify the failure is reported as IndexFormatTooOldException rather than a missing "Lucene3x" codec, then add the regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.