Skip to content
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

Plugin Restart Behavior and Search Scroll #39

Open
thanthos opened this issue Feb 23, 2016 · 1 comment
Open

Plugin Restart Behavior and Search Scroll #39

thanthos opened this issue Feb 23, 2016 · 1 comment

Comments

@thanthos
Copy link

Would like to query the design behavior for this plugin.

  1. What should be the behavior of the plugin when it encounter error and perform a restart?
  2. How should it be handling the scroll?

I hit an OOM issue while trying to reindex my docs and I discovered that the search scroll context is not handled properly. While the plugin restarts, the search scroll context is left hanging when querying the status.
GET /_nodes/stats/indices/search?pretty
If the behavior is to continue after restart, I am not seeing it as the doc count exceed the original count. If the behavior is to restart the query, then the search scroll should be explicitly closed off before restarting.

Not too big an issue if interval settings is small but it can have significant impact if the interval is long or when resources are limited.

@ppf2
Copy link
Member

ppf2 commented May 3, 2017

This also happens if the scroll timeout is not set long enough. This will result in an apparent restart of the scroll, so if you are running a lengthy job where the scroll may timeout, you can end up with a whole bunch of superfluous documents in the resulting output. Easiest way to reproduce this is to explicitly issue a clear scroll to clear the search context while the job is running and you will see the resulting count to be completely off at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants