-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Clarify documentation of scroll_id #29424
Conversation
The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation.
Pinging @elastic/es-search-aggs |
test this please. |
I'm not sure if this change adds confusion in a different way now. It could now be read that the response may or may not return a scroll id field which I think is a bigger source of confusion than whether or not the scroll id might be the same as the previous one. We need to be clear that the scroll id is always returned in the response. I'm not really sure about the advantage of the documentation stating that the scroll id may or may not change between responses since this doesn't change the fact that the user should always use the scroll id returned to them in the most recent response regardless of whether it changed. |
Stating that it will always be new is more misleading in my opinion. The whole reason I made this change was spending the morning tearing my hair out because I wasn't getting a new scroll id, thinking I was repeating the same request over and over.
… On 9/04/2018, at 20:03, Colin Goodheart-Smithe ***@***.***> wrote:
I'm not sure if this change adds confusion in a different way now. It could now be read that the response may or may not return a scroll id field which I think is a bigger source of confusion than whether or not the scroll id might be the same as the previous one. We need to be clear that the scroll id is always returned in the response.
I'm not really sure about the advantage of the documentation stating that the scroll id may or may not change between responses since this doesn't change the fact that the user should always use the scroll id returned to them in the most recent response regardless of whether it changed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ok, I understand the motive for your change much better now. Maybe we can word it in a way that conveys both that the scroll id will be returned in every response and that the returned scroll id may not change between responses all the time? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SarenCurrie sorry for the delay in getting back to this.
Thanks for updating the wording. I'll merge and back port this change shortly
* Clarify documentation of scroll_id The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation. * Further clarify scroll ID return behaviour
* Clarify documentation of scroll_id The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation. * Further clarify scroll ID return behaviour
* Clarify documentation of scroll_id The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation. * Further clarify scroll ID return behaviour
* Clarify documentation of scroll_id The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation. * Further clarify scroll ID return behaviour
merged to master and backported to 6.x (6.4), 6.3, 6.2, and 5.6 |
Thanks for the contribution @SarenCurrie |
* 6.x: Watcher: Ensure mail message ids are unique per watch action (#30112) SQL: Correct error message (#30138) SQL: Add BinaryMathProcessor to named writeables list (#30127) Tests: Use buildDir as base for generated-resources (#30191) Fix SliceBuilderTests#testRandom failures Fix edge cases in CompositeKeyExtractorTests (#30175) Document time unit limitations for date histograms (#30177) Remove licenses missed by the migration [DOCS] Updates docker installation package details (#30110) Fix TermsSetQueryBuilder.doEquals() method (#29629) [Monitoring] Remove unhelpful Monitoring tests (#30144) [Test] Fix RenameProcessorTests.testRenameExistingFieldNullValue() (#29655) [test] include oss tar in packaging tests (#30155) TEST: Update settings should go through cluster state (#29682) Add additional shards routing info in ShardSearchRequest (#29533) Reinstate missing documentation (#28781) Clarify documentation of scroll_id (#29424) Fixes Eclipse build for sql jdbc project (#30114) Watcher: Fold two smoke test projects into smoke-test-watcher (#30137)
The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation.