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

NullPointerException (NPE) in completion suggester requests #4788

Closed
timbunce opened this issue Jan 17, 2014 · 4 comments
Closed

NullPointerException (NPE) in completion suggester requests #4788

timbunce opened this issue Jan 17, 2014 · 4 comments

Comments

@timbunce
Copy link

I've been getting sporadic NullPointerException's when executing completion suggester requests for some time and with several recent versions of ES (0.90.{8,9,10}). They're hard to reproduce. Here's an example:

[2014-01-17 11:08:22,577][DEBUG][action.suggest           ] [tbunce-mls-tim] [mls_fts_140117_094546][1], node[IKnJF62HSKe71A0Rr5s1tw], [P], s[STARTED]: Failed to execute [[[mls_fts]], suggestSource[{"GROUP":{"text":"0 health-check","completion":{"field":"mls_area_group_name_suggest"}},"ZIP":{"text":"0 health-check","completion":{"field":"address_zip_suggest"}},"AREA":{"text":"0 health-check","completion":{"field":"mls_area_name_suggest"}},"MLS#":{"text":"0 health-check","completion":{"field":"mls_num_suggest"}}}]]
    org.elasticsearch.ElasticSearchException: failed to execute suggest
    at org.elasticsearch.action.suggest.TransportSuggestAction.shardOperation(TransportSuggestAction.java:167)
    at org.elasticsearch.action.suggest.TransportSuggestAction.shardOperation(TransportSuggestAction.java:60)
    at org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$AsyncBroadcastAction$2.run(TransportBroadcastOperationAction.java:225)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException

They seem to only occur if data is being loaded at the same time.

@s1monw
Copy link
Contributor

s1monw commented Jan 17, 2014

do you have a full stacktrace where the excception occurs?

@timbunce
Copy link
Author

How could I get a full stacktrace where the excception occurs?

@clintongormley
Copy link

@timbunce the stacktrace should be available in the elasticsearch logs

@clintongormley
Copy link

Actually, what you originally pasted looks like it came from the logs already. ignore me

s1monw added a commit to s1monw/elasticsearch that referenced this issue Jan 31, 2014
@s1monw s1monw closed this as completed in 3e31702 Jan 31, 2014
s1monw added a commit that referenced this issue Jan 31, 2014
s1monw added a commit that referenced this issue Jan 31, 2014
s1monw added a commit that referenced this issue Jan 31, 2014
@clintongormley clintongormley added the :Search/Suggesters "Did you mean" and suggestions as you type label Jun 7, 2015
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
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

3 participants