Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to read index after MTAS upgrade #17

Open
reckart opened this issue Jul 1, 2022 · 0 comments
Open

Unable to read index after MTAS upgrade #17

reckart opened this issue Jul 1, 2022 · 0 comments

Comments

@reckart
Copy link
Contributor

reckart commented Jul 1, 2022

Lucene is able to work with indexes created with older versions of Lucene.

However, when upgrading MTAS say from 7.7.1.0 to 8.11.1.0, an exception is generated when trying to open the index:

2022-07-01 20:33:06 [main] ERROR MtasDocumentIndex - Unable to read MTAS index: codec mismatch: actual codec=Lucene70SegmentInfo vs expected codec=Lucene86SegmentInfo (resource=BufferedChecksumIndexInput(MMapIndexInput(path="/Users/bluefire/git/inception-application/inception/inception-search-mtas/target/test-output/MtasUpgradeTest/project/1/indexMtas/_0.si")))
org.apache.lucene.index.CorruptIndexException: codec mismatch: actual codec=Lucene70SegmentInfo vs expected codec=Lucene86SegmentInfo (resource=BufferedChecksumIndexInput(MMapIndexInput(path="/Users/bluefire/git/inception-application/inception/inception-search-mtas/target/test-output/MtasUpgradeTest/project/1/indexMtas/_0.si")))
	at org.apache.lucene.codecs.CodecUtil.checkHeaderNoMagic(CodecUtil.java:208) ~[lucene-core-8.11.1.jar:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - janhoy - 2021-12-14 13:46:43]
	at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:198) ~[lucene-core-8.11.1.jar:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - janhoy - 2021-12-14 13:46:43]
	at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:255) ~[lucene-core-8.11.1.jar:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - janhoy - 2021-12-14 13:46:43]
	at org.apache.lucene.codecs.lucene86.Lucene86SegmentInfoFormat.read(Lucene86SegmentInfoFormat.java:95) ~[lucene-core-8.11.1.jar:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - janhoy - 2021-12-14 13:46:43]
	at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:357) ~[lucene-core-8.11.1.jar:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - janhoy - 2021-12-14 13:46:43]
	at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:291) ~[lucene-core-8.11.1.jar:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - janhoy - 2021-12-14 13:46:43]
	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1037) ~[lucene-core-8.11.1.jar:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - janhoy - 2021-12-14 13:46:43]
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant