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

Close scan session when not all data is read. #813

Closed
keith-turner opened this issue Dec 7, 2018 · 0 comments

Comments

@keith-turner
Copy link
Contributor

commented Dec 7, 2018

If only some data is read from a scanner and then the scanner is closed then this may leave server side scan sessions open. Normally this does not matter because these scan sessions do not use much memory. However in the case of an isolated scan then scan session can use a lot of memory. While working on #797 I had refactored a metadata scan from Range(x,y) to Range(x, null) and did not read all data. This resulted in tablet servers dying with an out of memory error.

Currently scanners have a close method that is a noop. However it would be nice if this close method cleaned up any server side scan sessions.

@keith-turner keith-turner self-assigned this Dec 7, 2018

keith-turner added a commit to keith-turner/accumulo that referenced this issue Jan 16, 2019

@keith-turner keith-turner added the v2.0.0 label Jan 17, 2019

@ctubbsii ctubbsii added this to Done in 2.0.0 Jun 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
1 participant
You can’t perform that action at this time.