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
clear scroll throws 500 on array out of bounds exception #5730
Comments
@Mpdreamz Actually that specific scroll id is malformed and that is where the ArrayIndexOutOfBoundsException comes from, so I think a 400 should be returned? If a non existent scroll_id is used, it will just return and act like everything is fine. I agree a 404 would be nice. |
++404 |
++404 and +1 on implementing #5726 @martijnvg ! |
PR #5738 only addresses invalid scroll ids. Returning a 404 for a valid, but non existing scroll id requires more work than just validation. The clear scoll api uses an internal free search context api, which for example the search api relies on. This internal api just always returns an empty response. I can change that, so that it includes whether it actually has removed a search context, but that requires a change in the transport layer, so I like to do separate that in a different PR. |
LGTM |
@martijnvg can you assign the fix version here please |
Since elastic#5730 we write a boolean in the FreeContextResponse which should be deserialized Closes elastic#6147
Returns the following response
While a 404 is expected.
It would also be nice if we can allow the scroll id to be posted. I've had people hit problems with scroll ids that are too big in the past:
elastic/elasticsearch-net#318
The text was updated successfully, but these errors were encountered: