[ 
https://issues.apache.org/jira/browse/LUCENE-5377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13878686#comment-13878686
 ] 

Robert Muir commented on LUCENE-5377:
-------------------------------------

First of all, some test should fail.

IndexWriter.addIndexes(Dir) is so dangerous...

To fix the bug, i think we have to support write logic in the old .si writer? 
And only allow the UOE if its really 3.x codec...

Long term this is bogus. We should either remove IndexWriter.addIndexes(Dir) or 
change things so it doesnt need to write .si at all here (e.g. put partial 
filenames in the .si that don't include segment prefix)

> Lucene 4.6 cause mixed version segments 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, modules/facet
>    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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to