-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-26944 Possible resource leak while creating new region scanner #4339
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
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
I'm neutral on this change. CP is designed for advanced user, so the users should know the risk of throwing exception out. Do you face any real problems in production? |
|
🎊 +1 overall
This message was automatically generated. |
Agree Duo, but here we have a chance to close the scanner in case some unusual happen at CP side. Yeah recently we met this problem in our production env, there were 7000+ unclosed scanners. |
|
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better add a comment here to mention that ‘although CP is for advanced users and they should take care of the implementation to not damage the HBase system, closing the scanner on exception here does not have any bad side effect so let's do it‘. Something like this.
Make sense, thanks Duo for the suggestion. Will push the changes. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
Not sure, why some checks are not yet completed. Any idea Duo? |
|
Let me kick another build. |
|
Thanks Duo...!! |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
UT failures are not relevant. |
…4339) * HBASE-26944 Possible resource leak while creating new region scanner Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 62e3efc)
…4339) * HBASE-26944 Possible resource leak while creating new region scanner Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 62e3efc)
…4339) * HBASE-26944 Possible resource leak while creating new region scanner Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 62e3efc)
…pache#4339) * HBASE-26944 Possible resource leak while creating new region scanner Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 62e3efc) (cherry picked from commit eea9e78) Change-Id: I2940cb2c2d9ff39f2e0c79a553f0d75f8cbbb896
Scanner should be closed to avoid leak in case any exception thrown from RegionObserver#postScannerOpen