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

num_freed field in clear all scrolls response is incorrect #63171

Closed
stav29 opened this issue Oct 2, 2020 · 6 comments
Closed

num_freed field in clear all scrolls response is incorrect #63171

stav29 opened this issue Oct 2, 2020 · 6 comments
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team

Comments

@stav29
Copy link

stav29 commented Oct 2, 2020

Elasticsearch version (bin/elasticsearch --7.8.1):

Plugins installed: []

JVM version (java -11.0.6):

OS version (windows):

Description of the problem:
When I try to delete all scrolls using DELETE server:port/_search/scroll/_all
I get the number of nodes in the cluster in the num_freed field instead of the number of scrolls actually being deleted

@stav29 stav29 added >bug needs:triage Requires assignment of a team area label labels Oct 2, 2020
@stav29
Copy link
Author

stav29 commented Oct 2, 2020

If it's fairly easy I would like to try and fix this bug

@stav29 stav29 closed this as completed Oct 2, 2020
@stav29 stav29 reopened this Oct 2, 2020
@matriv matriv added the :Search/Search Search-related issues that do not fall into other categories label Oct 5, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@elasticmachine elasticmachine added the Team:Search Meta label for search team label Oct 5, 2020
@matriv
Copy link
Contributor

matriv commented Oct 5, 2020

@stav29 Do you have an example to reproduce this ?

@stav29
Copy link
Author

stav29 commented Oct 5, 2020

@matriv in order to reproduce this you will - need to run DELETE /_search/scroll/_all (instead of passing a specific scroll id or some scroll id's in an array). It wouldn't matter how many active scrolls you have (even without active scrolls) you will get the number of nodes in your cluster in the num_freed field in the response.

@matriv matriv added >enhancement and removed >bug labels Oct 6, 2020
@matriv
Copy link
Contributor

matriv commented Oct 6, 2020

@stav29 Thx for the clarification, the current behaviour is the intended one, but it's not documented (regarding the _all).
Feel free to work on the improvement you propose, which can be a bit trickier when there are failures on nodes involved.

@danielmitterdorfer danielmitterdorfer removed the needs:triage Requires assignment of a team area label label Oct 13, 2020
@javanna
Copy link
Member

javanna commented Jun 24, 2024

This has been open for quite a while, and hasn't had a lot of interest. For now I'm going to close this as something we aren't planning on implementing. We can re-open it later if needed.

@javanna javanna closed this as not planned Won't fix, can't repro, duplicate, stale Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
Development

No branches or pull requests

5 participants