Skip to content

Instantly share code, notes, and snippets.

Created November 15, 2012 10:01
Show Gist options
  • Save anonymous/4077780 to your computer and use it in GitHub Desktop.
Save anonymous/4077780 to your computer and use it in GitHub Desktop.
ElasticSearch Highlighting IndexOutOfBoundsException
[2012-11-16 08:23:04,467][WARN ][transport.netty ] [search-a] Message not fully read (response) for [10073209] handler org.elasticsearch.search.action.SearchServi
ceTransportAction$8@62304f83, error [false], resetting
[2012-11-16 10:27:22,155][DEBUG][action.search.type ] [search-a] [7143007] Failed to execute fetch phase
org.elasticsearch.transport.RemoteTransportException: Failed to deserialize response of type [org.elasticsearch.search.fetch.FetchSearchResult]
Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize response of type [org.elasticsearch.search.fetch.FetchSearchResult]
at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:150)
at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:127)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:458)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:439)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:311)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:390)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:261)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.IndexOutOfBoundsException: Invalid index: 1274 - Bytes needed: 209741, maximum is 2124
at org.elasticsearch.common.netty.buffer.CompositeChannelBuffer.slice(CompositeChannelBuffer.java:609)
at org.elasticsearch.transport.netty.ChannelBufferStreamInput.readBytesReference(ChannelBufferStreamInput.java:55)
at org.elasticsearch.common.io.stream.StreamInput.readText(StreamInput.java:171)
at org.elasticsearch.common.io.stream.AdapterStreamInput.readText(AdapterStreamInput.java:105)
at org.elasticsearch.search.highlight.HighlightField.readFrom(HighlightField.java:97)
at org.elasticsearch.search.highlight.HighlightField.readHighlightField(HighlightField.java:83)
at org.elasticsearch.search.internal.InternalSearchHit.readFrom(InternalSearchHit.java:525)
at org.elasticsearch.search.internal.InternalSearchHit.readSearchHit(InternalSearchHit.java:463)
at org.elasticsearch.search.internal.InternalSearchHits.readFrom(InternalSearchHits.java:220)
at org.elasticsearch.search.internal.InternalSearchHits.readSearchHits(InternalSearchHits.java:188)
at org.elasticsearch.search.fetch.FetchSearchResult.readFrom(FetchSearchResult.java:99)
at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:148)
... 22 more
[2012-11-16 10:27:22,157][WARN ][transport.netty ] [search-a] Message not fully read (response) for [10081242] handler org.elasticsearch.search.action.SearchServiceTransportAction$8@4903911b, error [false], resetting
[2012-11-16 10:27:22,156][DEBUG][action.search.type ] [search-a] [7143008] Failed to execute fetch phase
org.elasticsearch.transport.RemoteTransportException: Failed to deserialize response of type [org.elasticsearch.search.fetch.FetchSearchResult]
Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize response of type [org.elasticsearch.search.fetch.FetchSearchResult]
at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:150)
at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:127)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:458)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:439)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:390)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:261)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.IndexOutOfBoundsException: Invalid combined index of 33592166, maximum is 1914
at org.elasticsearch.common.netty.buffer.SlicedChannelBuffer.<init>(SlicedChannelBuffer.java:46)
at org.elasticsearch.common.netty.buffer.HeapChannelBuffer.slice(HeapChannelBuffer.java:200)
at org.elasticsearch.transport.netty.ChannelBufferStreamInput.readBytesReference(ChannelBufferStreamInput.java:55)
at org.elasticsearch.common.io.stream.StreamInput.readText(StreamInput.java:171)
at org.elasticsearch.common.io.stream.AdapterStreamInput.readText(AdapterStreamInput.java:105)
at org.elasticsearch.search.highlight.HighlightField.readFrom(HighlightField.java:97)
at org.elasticsearch.search.highlight.HighlightField.readHighlightField(HighlightField.java:83)
at org.elasticsearch.search.internal.InternalSearchHit.readFrom(InternalSearchHit.java:528)
at org.elasticsearch.search.internal.InternalSearchHit.readSearchHit(InternalSearchHit.java:463)
at org.elasticsearch.search.internal.InternalSearchHits.readFrom(InternalSearchHits.java:220)
at org.elasticsearch.search.internal.InternalSearchHits.readSearchHits(InternalSearchHits.java:188)
at org.elasticsearch.search.fetch.FetchSearchResult.readFrom(FetchSearchResult.java:99)
at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:148)
... 22 more
[2012-11-16 10:27:22,159][WARN ][transport.netty ] [search-a] Message not fully read (response) for [10081241] handler org.elasticsearch.search.action.SearchServiceTransportAction$8@92ba910, error [false], resetting
curl -XPOST "http://localhost:9200/twitter/tweet/_search?size=2&from=0&pretty=1" -d '{
"query": {
"filtered": {
"filter": {
"and": {
"filters": [
{"range": {"date_published": {"gte": "2012-11-14T00:00:00"}}},
{"term": {"language": "en"}}
]}},
"query": {
"query_string": {"fields": ["body", "title"], "default_operator": "and", "query": "ipod"}
}}},
"highlight": {
"number_of_fragments": 10, "fragment_size": 10, "pre_tags": [""], "post_tags": [""],
"fields": {
"title": {"number_of_fragments": 0},
"body": {"number_of_fragments": 1}
}
}
}'
{
took: 9
timed_out: false
_shards: {
total: 5
successful: 5
failed: 0
}
hits: {
total: 361
max_score: 2.7167044
hits: [
{
_index: twitter
_type: tweet
_id: 9052631
_score: 2.7167044
_source: {
id: 9052631
title:
body: Carlees iPod>>My IPod.
date_published: 2012-11-14T01:51:24.000Z
language: en
...
}
highlight: {
body: [
iPod>>My IPod.
]
}
}
{
_index: twitter
_type: tweet
_id: 7211941
_score: 2.4216118
_source: {
id: 7211941
title:
body: @oneofwimper iPod???????
date_published: 2012-11-14T13:51:50.000Z
language: en
...
}
highlight: {
body: [
iPod???????
]
}
}
]
}
}
Same curl command as above
{
took: 9
timed_out: false
_shards: {
total: 5
successful: 3
failed: 2
failures: [
{
status: 500
reason: RemoteTransportException[Failed to deserialize response of type [org.elasticsearch.search.fetch.FetchSearchResult]]; nested: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.search.fetch.FetchSearchResult]]; nested: IndexOutOfBoundsException[Invalid combined index of 200083, maximum is 384];
}
{
status: 500
reason: RemoteTransportException[Failed to deserialize response of type [org.elasticsearch.search.fetch.FetchSearchResult]]; nested: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.search.fetch.FetchSearchResult]]; nested: IndexOutOfBoundsException[Invalid combined index of 200852, maximum is 388];
}
]
}
hits: {
total: 361
max_score: 2.7098672
hits: [ ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment