You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Littlestar (JIRA)" <ji...@apache.org> on 2014/01/21 15:19:19 UTC

[jira] [Updated] (LUCENE-5377) Lucene mixed version segments cause segment info file(.si) wrong

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

Littlestar updated LUCENE-5377:
-------------------------------

    Attachment: TestCore_46.java
                TestCore_45.java

reproduce steps:
1. run TestCore_45 in luence 4.5, it generate a index TestCore_45/data/taxo.
2. copy data/taxo in TestCore_46/data/taxo.
3. run TestCore_46.
you will see the following errors.
Exception in thread "main" java.io.FileNotFoundException: xception in thread "main" java.io.FileNotFoundException: G:\JavaWorkspace\bug_test\Lucene_46\data\taxo\_2.si (.........)
	at java.io.RandomAccessFile.open(Native Method)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
	at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:388)
	at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.<init>(SimpleFSDirectory.java:103)
	at org.apache.lucene.store.SimpleFSDirectory.openInput(SimpleFSDirectory.java:58)
	at org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoReader.read(Lucene40SegmentInfoReader.java:51)
	at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:340)
	at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:404)
	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:843)
	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:694)
	at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:400)
	at org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter.readCommitData(DirectoryTaxonomyWriter.java:138)
	at org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter.<init>(DirectoryTaxonomyWriter.java:222)
	at org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter.<init>(DirectoryTaxonomyWriter.java:331)
	at TestCore_46$1.<init>(TestCore_46.java:27)
	at TestCore_46.open(TestCore_46.java:27)
	at TestCore_46.main(TestCore_46.java:75)


==============================

> Lucene mixed version segments cause segment info file(.si) wrong
> ----------------------------------------------------------------
>
>                 Key: LUCENE-5377
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5377
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 4.6
>         Environment: windows/linux
>            Reporter: Littlestar
>         Attachments: TestCore_45.java, TestCore_46.java
>
>
> my old facet index create by Lucene version=4.2
> use indexChecker ok.
> now I upgrade to Lucene 4.6 and put some new records to index.
> then reopen index, some files in indexdir missing....
> no .si files.
> I debug into it,  new version format of segments.gen(segments_N) record bad segments info.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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