Uh oh!
There was an error while loading. Please reload this page.
HBASE-26944 Possible resource leak while creating new region scanner - #4339
Conversation
Apache-HBase
commented
Apr 12, 2022
🎊 +1 overall
This message was automatically generated. |
Apache9
commented
Apr 12, 2022
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? |
Apache-HBase
commented
Apr 12, 2022
🎊 +1 overall
This message was automatically generated. |
pankaj72981
commented
Apr 12, 2022
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. |
Apache-HBase
commented
Apr 12, 2022
💔 -1 overall
This message was automatically generated. |
Apache9
left a comment
There was a problem hiding this comment.
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.
pankaj72981
commented
Apr 12, 2022
Make sense, thanks Duo for the suggestion. Will push the changes. |
Apache-HBase
commented
Apr 12, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Apr 12, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Apr 12, 2022
💔 -1 overall
This message was automatically generated. |
pankaj72981
commented
Apr 13, 2022
Not sure, why some checks are not yet completed. Any idea Duo? |
Apache9
commented
Apr 13, 2022
Let me kick another build. |
Thanks Duo...!! |
Apache-HBase
commented
Apr 13, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Apr 13, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Apr 13, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Apr 14, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Apr 14, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Apr 14, 2022
💔 -1 overall
This message was automatically generated. |
pankaj72981
commented
Apr 15, 2022
UT failures are not relevant. |
…4339) * HBASE-26944 Possible resource leak while creating new region scanner Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 62e3efc)
…4339) * HBASE-26944 Possible resource leak while creating new region scanner Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 62e3efc)
…4339) * HBASE-26944 Possible resource leak while creating new region scanner Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 62e3efc)
…pache#4339) * HBASE-26944 Possible resource leak while creating new region scanner Signed-off-by: Duo Zhang <zhangduo@apache.org> (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