I've been developing against elasticsearch-1.0.0.Beta1-SNAPSHOT. Today I
pulled in recent changes, including the transition to lucence 4.5.
Unfortunately, I seem to have an index that is not forward compatible with
that.
I'm running into the following error
15:44:17.672 [elasticsearch[localnode][generic][T#1]] WARN indices.cluster
- [localnode] [posts][0] failed to start shard
org.elasticsearch.index.gateway.IndexShardGatewayRecoveryException:
[posts][0] failed recovery
at
org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:227)
~[elasticsearch-1.0.0.Beta1-SNAPSHOT.jar:na]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
~[na:1.7.0_25]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
~[na:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
Caused by: org.elasticsearch.index.engine.EngineCreationFailureException:
[posts][0] failed to open reader on writer
at
org.elasticsearch.index.engine.robin.RobinEngine.start(RobinEngine.java:290)
~[elasticsearch-1.0.0.Beta1-SNAPSHOT.jar:na]
at
org.elasticsearch.index.shard.service.InternalIndexShard.performRecoveryPrepareForTranslog(InternalIndexShard.java:648)
~[elasticsearch-1.0.0.Beta1-SNAPSHOT.jar:na]
at
org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:200)
~[elasticsearch-1.0.0.Beta1-SNAPSHOT.jar:na]
at
org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:174)
~[elasticsearch-1.0.0.Beta1-SNAPSHOT.jar:na]
... 3 common frames omitted
Caused by: java.io.EOFException: read past EOF:
NIOFSIndexInput(_0_Disk_0.dvdm in
path="/Users/jilles/git/localstream/backend/data/localstream-embedded/nodes/0/indices/posts/0/index/_0.cfs"
slice=140300:140352)
at
org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:265)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:51)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at org.apache.lucene.store.DataInput.readVInt(DataInput.java:108)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.store.BufferedIndexInput.readVInt(BufferedIndexInput.java:218)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.codecs.lucene45.Lucene45DocValuesProducer.readNumericEntry(Lucene45DocValuesProducer.java:185)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.codecs.lucene45.Lucene45DocValuesProducer.readFields(Lucene45DocValuesProducer.java:120)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.codecs.lucene45.Lucene45DocValuesProducer.(Lucene45DocValuesProducer.java:85)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.codecs.diskdv.DiskDocValuesProducer.(DiskDocValuesProducer.java:31)
~[lucene-codecs-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:06:34]
at
org.apache.lucene.codecs.diskdv.DiskDocValuesFormat.fieldsProducer(DiskDocValuesFormat.java:56)
~[lucene-codecs-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:06:34]
at
org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat$FieldsReader.(PerFieldDocValuesFormat.java:215)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat.fieldsProducer(PerFieldDocValuesFormat.java:300)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:142)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at org.apache.lucene.index.SegmentReader.(SegmentReader.java:56)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.index.ReadersAndLiveDocs.getReadOnlyClone(ReadersAndLiveDocs.java:218)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:100)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:379)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:111)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at org.apache.lucene.search.SearcherManager.(SearcherManager.java:89)
~[lucene-core-4.5.0.jar:4.5.0 1527178 - jpountz - 2013-09-28 14:05:42]
at
org.elasticsearch.index.engine.robin.RobinEngine.buildSearchManager(RobinEngine.java:1396)
~[elasticsearch-1.0.0.Beta1-SNAPSHOT.jar:na]
at
org.elasticsearch.index.engine.robin.RobinEngine.start(RobinEngine.java:280)
~[elasticsearch-1.0.0.Beta1-SNAPSHOT.jar:na]
... 6 common frames omitted
I've narrowed it down to the exact commit that merged lucene 4.5 on elastic
search master everything after that is broken for me. The commit before
that works fine with a backup index that I have and the commit after that
it just prints stack traces. So 6b02611 is broken for me and a10c195 is
still fine. The way I've tested this is by using a tgz backup of my index
and trying various combinations of versions.
The same index runs fine with 0.90.4 and then upgrading to 0.90.5 works
fine as well (which includes lucene 4.5). From there upgrading to the 1.0
snapshot again breaks my index.
So in summarry in summary, my index seems fine with pre lucene 4.5 master
(a10c195), 0.90.4, and 0.90.5 but is broken with anything after a10c195 on
master.
For now, I'm probably sticking with 0.90.5. I'd very much appreciate any
feedback about what might be wrong on my side or whether I'm running into a
(known?) issue here. I'd be happy to provide more details if needed.
Jilles
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.