NullPointerException on empty filter with 0.90.3

Hello,

I'm not sure this have already been reported, but i can't found it on
github issues

This query
$ curl http://localhost:9200/_search -d '{"filter": {}, "query":
{"match_all": {}}}'

give the follwing errors :

{"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[Uc0lFFnfRPWiN6twjVxqFg][m108][0]: QueryPhaseExecutionException[[m108][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[2hXe71VwRO6qAkz09mHlEw][m109][0]: RemoteTransportException[[sissor2][inet[/192.168.110.90:9300]][search/phase/query]]; nested: QueryPhaseExecutionException[[m109][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[2hXe71VwRO6qAkz09mHlEw][m0ar][3]: RemoteTransportException[[sissor2][inet[/192.168.110.90:9300]][search/phase/query]]; nested: QueryPhaseExecutionException[[m0ar][3]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[2hXe71VwRO6qAkz09mHlEw][m0ar][2]: RemoteTransportException[[sissor2][inet[/192.168.110.90:9300]][search/phase/query]]; nested: QueryPhaseExecutionException[[m0ar][2]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[Uc0lFFnfRPWiN6twjVxqFg][m110][0]: QueryPhaseExecutionException[[m110][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[Uc0lFFnfRPWiN6twjVxqFg][m0ar][1]: QueryPhaseExecutionException[[m0ar][1]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[2hXe71VwRO6qAkz09mHlEw][m111][0]: RemoteTransportException[[sissor2][inet[/192.168.110.90:9300]][search/phase/query]]; nested: QueryPhaseExecutionException[[m111][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[Uc0lFFnfRPWiN6twjVxqFg][m0ar][0]: QueryPhaseExecutionException[[m0ar][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[Uc0lFFnfRPWiN6twjVxqFg][m112][0]: QueryPhaseExecutionException[[m112][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[Uc0lFFnfRPWiN6twjVxqFg][m104][0]: QueryPhaseExecutionException[[m104][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[Uc0lFFnfRPWiN6twjVxqFg][m103][0]: QueryPhaseExecutionException[[m103][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[Uc0lFFnfRPWiN6twjVxqFg][m102][0]: QueryPhaseExecutionException[[m102][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[Uc0lFFnfRPWiN6twjVxqFg][m105][0]: QueryPhaseExecutionException[[m105][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[Uc0lFFnfRPWiN6twjVxqFg][m_alert][0]: QueryPhaseExecutionException[[m_alert][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[2hXe71VwRO6qAkz09mHlEw][m106][0]: RemoteTransportException[[sissor2][inet[/192.168.110.90:9300]][search/phase/query]]; nested: QueryPhaseExecutionException[[m106][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[2hXe71VwRO6qAkz09mHlEw][m107][0]: RemoteTransportException[[sissor2][inet[/192.168.110.90:9300]][search/phase/query]]; nested: QueryPhaseExecutionException[[m107][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }{[2hXe71VwRO6qAkz09mHlEw][m101][0]: RemoteTransportException[[sissor2][inet[/192.168.110.90:9300]][search/phase/query]]; nested: QueryPhaseExecutionException[[
m101][0]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: NullPointerException; }]","status":500}

Removing the empty filter solve the problem.

I will try to reproduce it with a minimal setup.

Regards.

Benoît

--
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.

Hello again,

On Wednesday, August 28, 2013 5:35:56 PM UTC+2, Benoît wrote:

I will try to reproduce it with a minimal setup.

Confirmed with a fresh extraction of 0.90.3 tar.gz

Steps :

$ tar zxf elasticsearch-0.90.3.tar.gz
$ cd elasticsearch-0.90.3/
$ bin/elasticsearch -f

From tutorial :

$ curl -XPUT 'http://localhost:9200/twitter/user/kimchy' -d '{ "name" :
"Shay Banon" }'
$ curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '
{
"user": "kimchy",
"postDate": "2009-11-15T13:12:00",
"message": "Trying out Elastic Search, so far so good?"
}'
$ curl -XPUT 'http://localhost:9200/twitter/tweet/2' -d '
{
"user": "kimchy",
"postDate": "2009-11-15T14:12:12",
"message": "Another tweet, will it be indexed?"
}'
$ curl http://localhost:9200/_search -d '{"filter": {}, "query":
{"match_all": {}}}'
{"took":4,"timed_out":false,"_shards":{"total":5,"successful":3,"failed":2,
"failures":[{"index":"twitter","shard":2,"status":500,"reason":"QueryPhaseExecutionException[[twitter][2]:
query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute
main query]]; nested: NullPointerException; "},{"index":"twitter","shard":3,
"status":500,"reason":"QueryPhaseExecutionException[[twitter][3]:
query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute
main query]]; nested: NullPointerException; "}]},"hits":{"total":0,
"max_score":null,"hits":}}

Benoît

--
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.

can you open an issue for this please?

simon

On Wednesday, August 28, 2013 5:51:35 PM UTC+2, Benoît wrote:

Hello again,

On Wednesday, August 28, 2013 5:35:56 PM UTC+2, Benoît wrote:

I will try to reproduce it with a minimal setup.

Confirmed with a fresh extraction of 0.90.3 tar.gz

Steps :

$ tar zxf elasticsearch-0.90.3.tar.gz
$ cd elasticsearch-0.90.3/
$ bin/elasticsearch -f

From tutorial :

$ curl -XPUT 'http://localhost:9200/twitter/user/kimchy' -d '{ "name" :
"Shay Banon" }'
$ curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '
{
"user": "kimchy",
"postDate": "2009-11-15T13:12:00",
"message": "Trying out Elastic Search, so far so good?"
}'
$ curl -XPUT 'http://localhost:9200/twitter/tweet/2' -d '
{
"user": "kimchy",
"postDate": "2009-11-15T14:12:12",
"message": "Another tweet, will it be indexed?"
}'
$ curl http://localhost:9200/_search -d '{"filter": {}, "query":
{"match_all": {}}}'
{"took":4,"timed_out":false,"_shards":{"total":5,"successful":3,"failed":2
,"failures":[{"index":"twitter","shard":2,"status":500,"reason":"QueryPhaseExecutionException[[twitter][2]:
query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute
main query]]; nested: NullPointerException; "},{"index":"twitter","shard":
3,"status":500,"reason":"QueryPhaseExecutionException[[twitter][3]:
query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute
main query]]; nested: NullPointerException; "}]},"hits":{"total":0,
"max_score":null,"hits":}}

Benoît

--
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.

hmm I tried to reproduce this but I can't can you maybe show me some
outputs of the logs with trace logging enabled to see where the exception
occurs?

simon

On Wednesday, August 28, 2013 7:15:31 PM UTC+2, simonw wrote:

can you open an issue for this please?

simon

On Wednesday, August 28, 2013 5:51:35 PM UTC+2, Benoît wrote:

Hello again,

On Wednesday, August 28, 2013 5:35:56 PM UTC+2, Benoît wrote:

I will try to reproduce it with a minimal setup.

Confirmed with a fresh extraction of 0.90.3 tar.gz

Steps :

$ tar zxf elasticsearch-0.90.3.tar.gz
$ cd elasticsearch-0.90.3/
$ bin/elasticsearch -f

From tutorial :

$ curl -XPUT 'http://localhost:9200/twitter/user/kimchy' -d '{ "name" :
"Shay Banon" }'
$ curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '
{
"user": "kimchy",
"postDate": "2009-11-15T13:12:00",
"message": "Trying out Elastic Search, so far so good?"
}'
$ curl -XPUT 'http://localhost:9200/twitter/tweet/2' -d '
{
"user": "kimchy",
"postDate": "2009-11-15T14:12:12",
"message": "Another tweet, will it be indexed?"
}'
$ curl http://localhost:9200/_search -d '{"filter": {}, "query":
{"match_all": {}}}'
{"took":4,"timed_out":false,"_shards":{"total":5,"successful":3,"failed":
2,"failures":[{"index":"twitter","shard":2,"status":500,"reason":"QueryPhaseExecutionException[[twitter][2]:
query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute
main query]]; nested: NullPointerException; "},{"index":"twitter","shard"
:3,"status":500,"reason":"QueryPhaseExecutionException[[twitter][3]:
query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute
main query]]; nested: NullPointerException; "}]},"hits":{"total":0,
"max_score":null,"hits":}}

Benoît

--
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.

Hello,

Thanks for looking at this.

The issue : NullPointerException on empty filter with 0.90.3 · Issue #3595 · elastic/elasticsearch · GitHub

A gist with log at DEBUG level :

On Wednesday, August 28, 2013 10:30:15 PM UTC+2, simonw wrote:

hmm I tried to reproduce this but I can't can you maybe show me some
outputs of the logs with trace logging enabled to see where the exception
occurs?

I'm don't know what you mean by "trace logging enabled" so i've just set
log level to DEBUG but i can quickly re-run the test with another
configuration if needed.

Benoît

--
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.

Simon report that it was already fixed, see issue

Sorry to not have found the existing issue.

Benoît

On Thursday, August 29, 2013 9:02:25 AM UTC+2, Benoît wrote:

Hello,

Thanks for looking at this.

The issue : NullPointerException on empty filter with 0.90.3 · Issue #3595 · elastic/elasticsearch · GitHub

A gist with log at DEBUG level :
NullPointerException on empty filter with 0.90.3 · GitHub

On Wednesday, August 28, 2013 10:30:15 PM UTC+2, simonw wrote:

hmm I tried to reproduce this but I can't can you maybe show me some
outputs of the logs with trace logging enabled to see where the exception
occurs?

I'm don't know what you mean by "trace logging enabled" so i've just set
log level to DEBUG but i can quickly re-run the test with another
configuration if needed.

Benoît

--
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.