-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
/_termvectors sometimes throws NPE #21928
Comments
When you submit a _termvectors request for an artificial document and specify the 'preference' parameter to send the request to a particular shard, the request sometimes hits NPE. Fix this case by ignoring the auto-generated artificial document ID and pick a shard per the preference parameter, or a random shard. This closes elastic#21928
I created a PR to fix the problem: #21959. The problem is that when you use the The fix detects that the TV for an artificial document is requested, and if routing isn't explicitly specified, it ignores the document's ID and uses either one of the shards, or the one specified in the I also added an IT which verifies the behavior; it fails without the fix. |
When you submit a _termvectors request for an artificial document and specify the 'preference' parameter to send the request to a particular shard, the request sometimes hits NPE. Fix this case by ignoring the auto-generated artificial document ID and pick a shard per the preference parameter, or a random shard. This closes #21928
Spinoff from #21906. I still hope to find the root cause of the NPE, and hopefully this isn't a Guice thing. For reference, here's the stacktrace:
And here's the REST response
The text was updated successfully, but these errors were encountered: