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
[export saved objects] Use scroll API when exporting all #5586
Conversation
The elasticsearch-js client could really use a |
return scanner.scanAndMap(queryString, { | ||
pageSize, | ||
docCount: Number.POSITIVE_INFINITY | ||
}, this.mapHits.bind(this)); |
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.
please use (hit) => this.mapHits(hit)
vs function binding
Is this fix not relevant to 4.2? If it is, it should be backported to that as well. |
Adding 4.2 label, good catch. Anything ES 2.1+ |
@jbudz This only supports es 2.1+? If so, it can't go into 4.2 (which is 2.0) |
|
Ignore my last comment - this will still work on es 2.0, it just wasn't an issue with 2.0. |
LGTM |
LFunctionallyGTM |
Export all is throwing errors because the default max window size was changed to 10k and we are using Math.pow(2, 31) - 1. Currently the search API is used, this adds and uses a scan method.
This could be refactored to a shared method, however it does follow the existing files as is. Throwing it up now for feedback, undecided how far to take it.
Other alternatives
Closes #5524