Skip to content

StreamQueries#streamResults does not clear scroll context when finished [DATAES-764] #1337

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

Closed
spring-projects-issues opened this issue Mar 17, 2020 · 0 comments
Labels
in: core Issues in core support type: bug A general bug

Comments

@spring-projects-issues
Copy link

Sascha Woo opened DATAES-764 and commented

The frequent use of the stream implementation of Elasticsearch template e.g. in large iterations leads to the following warning since Elasticsearch 6.8.x and will be a problem in the next major release.

Trying to create more than 500 scroll contexts will not be allowed in the next major version by default. You can change the [search.max_open_scroll_context] setting to use a greater default value or lower the number of scrolls that you need to run in parallel.

The documentation of the Clear scroll API [1] point out the following:

Search context are automatically removed when the scroll timeout has been exceeded. However keeping scrolls open has a cost, as discussed in the previous section so scrolls should be explicitly cleared as soon as the scroll is not being used anymore using the clear-scroll API:

[1] https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-scroll.html#_clear_scroll_api


Affects: 3.2.5 (Moore SR5)

Referenced from: pull request #406

Backported to: 3.2.6 (Moore SR6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant