Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

negative from parameter yields undescriptive error message #1293

Closed
skade opened this issue Sep 1, 2011 · 1 comment
Closed

negative from parameter yields undescriptive error message #1293

skade opened this issue Sep 1, 2011 · 1 comment

Comments

@skade
Copy link
Contributor

skade commented Sep 1, 2011

A minor quibble:

If the from parameter is accidentally set to a negative value (for example -10), the following happens:

[2011-09-01 11:59:55,517][DEBUG][action.search.type ] [Quentin Quire] Index Shard [cp_45678][2]: Failed to execute [org.elasticsearch.action.search.SearchRequest@3c168b6c] while moving to second phase
java.lang.NullPointerException
at org.elasticsearch.search.controller.SearchPhaseController.docIdsToLoad(SearchPhaseController.java:249)

It would be nice if ElasticSearch would send a nicer error message indicating the client misbehavior.

@kimchy
Copy link
Member

kimchy commented Sep 1, 2011

Minor, but important!, will push a fix.

@kimchy kimchy closed this as completed in b888684 Sep 1, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants