-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-28224 ClientSideRegionScanner appears not to shutdown MobFileCache #5578
HBASE-28224 ClientSideRegionScanner appears not to shutdown MobFileCache #5578
Conversation
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@Apache9 any chance you have an idea on when this PR will be merged? Not urgent, I just don't want this PR to get lost |
Sorry, forgot this one. Let me merge and cherry-pick to other branches. |
…che (apache#5578) Signed-off-by: Duo Zhang <zhangduo@apache.org>
…shutdown MobFileCache (apache#5578) Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 5201ae2)
…che (apache#5578) Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 5201ae2) (cherry picked from commit cdb52b7) Change-Id: Ia6ef50e8fe91e59b239ad25babd10874d9af448d
What
This PR updates ClientSideRegionScanner to close its instances of the MobFileCache and the BlockCache. In normal region server operation, the shutdown of these resources is typically handled by RegionServerServices which isn't present in the ClientSideRegionScanner. Since the ClientSideRegionScanner instantiates these resources, it should handling shutting them down as well to avoid resource leaks.
Testing
I've verified that this works locally with some debug breakpoints. I'd love to write some automated test behavior for this, but unsure how to proceed there. Would appreciate any pointers.
HBASE-28224