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

Reply via email to