Integration test issues with elasticsearch


(slushi) #1

I have been getting sporadic failures with my elastic search based
integration tests on 0.90.11. The tests seem to work on and off, when they
fail, either my queries don't retrieve any documents or I get an execution
failure. I was using a local in memory node, but I switched to the
ElasticsearchIntegrationTest class in hopes it would help, but it hasn't
seemed to. In fact, the tests fail much more often now. My tests basically
create some indices, index some documents, and then do some queries. After
indexing, I have tried calling refresh() and flushAndRefresh() but neither
seems to help. I also did a match all query in the data setup phase (before
running the test queries) to make sure all the indexed documents were
available and they seem to be.

The queries I am testing use filters. Could this cause issues? When the
tests don't retrieve the correct number of documents, they never retrieve
any documents. When there is a failure, the exception looks like this:

org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to
execute phase [query_fetch], all shards failed; shardFailures
{[ns5-TWPpRgKOChWz_rBmFw][idx1][0]:
RemoteTransportException[[node_2][inet[/192.168.1.35:9302]][search/phase/query+fetch]];
nested: QueryPhaseExecutionException[[idx1][0]:
query[ConstantScore(+cache(published:[1395106335954 TO 1395106336354})
+QueryWrapperFilter(text:"matching"~1))],from[0],size[20],sort[<custom:"
published":
org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@6a3d610d>!,<custom:"_id":
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefFieldComparatorSource@63aed2f8>]:
Query Failed [Failed to execute main query]]; nested: AssertionError; }

at __randomizedtesting.SeedInfo.seed([BD12B25E3037A620:CCB70675798538D0]:0)

at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:272)

at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$3.onFailure(TransportSearchTypeAction.java:224)

at
org.elasticsearch.search.action.SearchServiceTransportAction$7.handleException(SearchServiceTransportAction.java:324)
...

Here is a sample query:

{

"from" : 0,

"size" : 20,

"timeout" : 9000,

"query" : {

"filtered" : {

  "query" : {

    "match_all" : { }

  },

  "filter" : {

    "and" : {

      "filters" : [ {

        "terms" : {

          "hash" : [ "wVAAiOFQbYk/+gb9tgr6qT7lxw1cInB5zeLK1ji99xs=", 

"vyrWhxzlvH61W1XUFVpf9josnk3SmO2lRp3JkhO8m+c=" ]

        }

      }, {

        "or" : {

          "filters" : [ {

            "query" : {

              "match" : {

                "text" : {

                  "query" : "matching",

                  "type" : "phrase",

                  "slop" : 1

                }

              }

            }

          } ]

        }

      } ]

    }

  }

}

},

"fields" : "docId",

"sort" : [ {

"published" : {

  "order" : "desc"

}

}, {

"_id" : { }

} ]

}

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a9c18b14-eb96-49f1-95e0-e76924fc6108%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Clinton Gormley) #2

Please could you open an issue and try to provide the steps to reproduce
this issue.

thanks

clint

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPt3XKT76pBaKao1Qb%2B8HtH66xMafBGRdBLow83Z6mrxfRqTGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3