You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Adrien Grand (Jira)" <ji...@apache.org> on 2019/10/18 09:35:00 UTC

[jira] [Resolved] (LUCENE-9011) Updating breaks backward compatibility by throwing IndexFormatTooOldException in some cases

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

Adrien Grand resolved LUCENE-9011.
----------------------------------
    Resolution: Won't Fix

Thas file has been created by Lucene 6 or earlier, while Lucene 8 can only read indices created by Lucene 7 or Lucene 8.

> Updating breaks backward compatibility by throwing IndexFormatTooOldException in some cases
> -------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-9011
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9011
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/FSTs
>    Affects Versions: 7.7.1
>            Reporter: xia0c
>            Priority: Major
>
> When I try to update Lucene from 7.7.1 to the latest version 8.2.0. The following code:
> {code:java}
> @Test
> public void test() throws FileSystemException{
>     String fstFileName = "fst/slovaklemma_ascii.fst";
>     File fstFile = new File(fstFileName);
>     FST<CharsRef> fst = FST.read(fstFile.toPath(), CharSequenceOutputs.getSingleton());
> }
> {code}
> Throws an IndexFormatTooOldException error:
> {code:java}
> org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (resource org.apache.lucene.store.InputStreamDataInput@69d9c55): 4 (needs to be between 6 and 6). This version of Lucene only supports indexes created with release 6.0 and later.
> 	at org.apache.lucene.codecs.CodecUtil.checkHeaderNoMagic(CodecUtil.java:213)
> 	at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:198)
> 	at org.apache.lucene.util.fst.FST.<init>(FST.java:275)
> 	at org.apache.lucene.util.fst.FST.<init>(FST.java:263)
> 	at org.apache.lucene.util.fst.FST.read(FST.java:487)
> {code}



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

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