lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Woodward <a...@flax.co.uk>
Subject Re: org.apache.lucene.index.CheckIndex throws Illegal initial capacity: -16777216
Date Sat, 17 Jun 2017 14:50:11 GMT
Solr/Lucene 6 can’t read 4.6 index files, only 5.x ones.  So you’ll need to upgrade from
4.6 to 5.x using the upgrade tool from the latest 5.x release, then from 5.x to 6 using the
current upgrade tool.

Alan Woodward
www.flax.co.uk


> On 17 Jun 2017, at 10:08, Moritz Michael <moritz.munte@gmail.com> wrote:
> 
> Hello,
> 
> I'm trying to upgrade a Solr 4.6 index to Solr 6.
> The upgrade does fail with an error.
> 
> I tried to check the index with org.apache.lucene.index.CheckIndex using
> this command:
> java -cp lucene-core-5.5.4.jar:lucene-backward-codecs-5.5.4.jar
> -ea:org.apache.lucene... org.apache.lucene.index.CheckIndex
> ./[PATH-TO-INDEX]/data/index
> 
> The check fail with this error:
> 
> Opening index @ ./[PATH-TO-INDEX]/data/index
>> 
>> ERROR: could not read any segments file in directory
>> java.lang.IllegalArgumentException: Illegal initial capacity: -16777216
>>        at java.util.HashMap.<init>(HashMap.java:448)
>>        at java.util.HashMap.<init>(HashMap.java:467)
>>        at
>> org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:393)
>>        at
>> org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:488)
>>        at org.apache.lucene.index.CheckIndex.doCheck(CheckIndex.java:2407)
>>        at org.apache.lucene.index.CheckIndex.doMain(CheckIndex.java:2309)
>>        at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:2235)
>> 
> 
> I tried this with Cygwin and the Windows 10 Ubuntu subsystem with the same
> result.
> 
> Any ideas?
> 
> Best
> Moritz


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message