[ 
https://issues.apache.org/jira/browse/LUCENE-9127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Erick Erickson resolved LUCENE-9127.
------------------------------------
    Resolution: Information Provided

Upgrading more than one major version of Lucene is explicitly not supported. 
Starting with Lucene 6, a marker is written into segments indicating which 
version of Lucene it was created with. When segments are merged, the earliest 
marker is preserved, so even if you rewrite all your segments with 7x, the 6x 
marker is preserved.

Lucene will refuse to open any index that has a marker lower than X-1, so if 
Lucene 8x sees any segment where the earliest marker is 6x or earlier (or is 
missing), it'll throw an exception.

You have to re-index your data from the system of record into a fresh 8x 
collection.

> index migration from 7 to 8 failing
> -----------------------------------
>
>                 Key: LUCENE-9127
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9127
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 8.4
>            Reporter: Niranjan
>            Priority: Major
>
> we have been using solr4 for more than 16 year, now it is to time to upgrade, 
> when we have decided to upgrade, started with migrating index from 4 -> 5, 5 
> -> 6, 6 -> 7, it was working as expected, but when it comes to 7 -> 8 , it 
> give me errors.
> {noformat}
>  Exception in thread "main" 
> org.apache.lucene.index.IndexFormatTooOldException: Format version is not 
> supported (resource 
> BufferedChecksumIndexInput(MMapIndexInput(path="/deploy/solrmaster/data/data/<name>/index/segments_4n"))):
>  This index was initially created with Lucene 6.x while the current version 
> is 8.4.0 and Lucene only supports reading the current and previous major 
> versions.. This version of Lucene only supports indexes created with release 
> 7.0 and later.{noformat}
> {noformat}
> java -cp ./lucene-core-8.4.0.jar:./lucene-backward-codecs-8.4.0.jar 
> org.apache.lucene.index.IndexUpgrader /deploy/solrmaster/data/data/job/index 
> -verbose {noformat}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to