Still have a bug? Query Failed ArrayIndexOutOfBoundsException


(Bryan Green) #1

Hi,

I'm running 0.17.9. This might be similar to 1400 that I reported on
previously. I'm going to delete the indexes and refresh the data (seemed to
fix it last time.) (and it fixed it this time :slight_smile:

Here is some more information.

Thanks again,
Bryan Green

Search results (26 hits reported from 5 shards, one failure...)
{
"took": 24,
"timed_out": false,
"_shards": {
"total": 6,
"successful": 5,
"failed": 1,
"failures": [
{
"index": "kk",
"shard": 1,
"status": 500,
"reason": "QueryPhaseExecutionException[[kk][1]:
query[ConstantScore(:)],from[0],size[999]: Query Failed [Failed to execute
main query]]; nested: ArrayIndexOutOfBoundsException[7]; "
}
]
}

error log
[2011-10-23 14:48:40,074][DEBUG][action.search.type ] [Bloom, Astrid]
[kk]
[1], node[Lmmlvrg3TneuX9nXGzCWvw], [P], s[STARTED]: Failed to execute
[org.elasticsearch.action.search.SearchRequest@46837311]
org.elasticsearch.search.query.QueryPhaseExecutionException: [kk][1]:
query[ConstantScore(:)],from[0],size[999]: Query Failed [Failed to execute
main query]
at
org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:221)
at
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:234)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:134)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:205)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:178)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 7
at
org.apache.lucene.util.FixedBitSet.nextSetBit(FixedBitSet.java:144)
at
org.elasticsearch.common.lucene.docset.DocSets.and(DocSets.java:86)
at
org.elasticsearch.common.lucene.search.XBooleanFilter.getDocIdSet(XBooleanFilter.java:107)
at
org.elasticsearch.common.lucene.search.FilteredCollector.setNextReader(FilteredCollector.java:59)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:523)
at
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:198)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:391)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:298)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:286)
at
org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:217)
... 9 more

Here is my query:
{
"from": 0,
"size": 999,
"filter": {
"bool": {
"must": [
{
"or": [
{
"term": {
"s_field_type": "image"
}
},
{
"missing": {
"field": "s_field_type"
}
}
]
},
{
"or": [
{
"term": {
"item_attr_items": "item_attr"
}
},
{
"missing": {
"field": "item_attr_items"
}
}
]
}
]
}
}
}

What else would be helpful?


(Shay Banon) #2

Grr, seems like there is still a problem with bool filter..., fixed in
https://github.com/elasticsearch/elasticsearch/issues/1419 on both 0.17 and
master branches.

On Sun, Oct 23, 2011 at 10:44 PM, Bryan Green bryogreen@gmail.com wrote:

Hi,

I'm running 0.17.9. This might be similar to 1400 that I reported on
previously. I'm going to delete the indexes and refresh the data (seemed to
fix it last time.) (and it fixed it this time :slight_smile:

Here is some more information.

Thanks again,
Bryan Green

Search results (26 hits reported from 5 shards, one failure...)
{
"took": 24,
"timed_out": false,
"_shards": {
"total": 6,
"successful": 5,
"failed": 1,
"failures": [
{
"index": "kk",
"shard": 1,
"status": 500,
"reason": "QueryPhaseExecutionException[[kk][1]:
query[ConstantScore(:)],from[0],size[999]: Query Failed [Failed to execute
main query]]; nested: ArrayIndexOutOfBoundsException[7]; "
}
]
}

error log
[2011-10-23 14:48:40,074][DEBUG][action.search.type ] [Bloom, Astrid]
[kk]
[1], node[Lmmlvrg3TneuX9nXGzCWvw], [P], s[STARTED]: Failed to execute
[org.elasticsearch.action.search.SearchRequest@46837311]
org.elasticsearch.search.query.QueryPhaseExecutionException: [kk][1]:
query[ConstantScore(:)],from[0],size[999]: Query Failed [Failed to execute
main query]
at
org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:221)
at
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:234)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:134)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:205)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:178)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 7
at
org.apache.lucene.util.FixedBitSet.nextSetBit(FixedBitSet.java:144)
at
org.elasticsearch.common.lucene.docset.DocSets.and(DocSets.java:86)
at
org.elasticsearch.common.lucene.search.XBooleanFilter.getDocIdSet(XBooleanFilter.java:107)
at
org.elasticsearch.common.lucene.search.FilteredCollector.setNextReader(FilteredCollector.java:59)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:523)
at
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:198)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:391)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:298)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:286)
at
org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:217)
... 9 more

Here is my query:
{
"from": 0,
"size": 999,
"filter": {
"bool": {
"must": [
{
"or": [
{
"term": {
"s_field_type": "image"
}
},
{
"missing": {
"field": "s_field_type"
}
}
]
},
{
"or": [
{
"term": {
"item_attr_items": "item_attr"
}
},
{
"missing": {
"field": "item_attr_items"
}
}
]
}
]
}
}
}

What else would be helpful?


(Bryan Green) #3

All is well that ends well. Thank you Shay.


(system) #4