Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
-
None
Description
Have a discussion with Anoop Sam John, we find still have some exceptional paths which we did not handle DBB#release correctly. More details are the following:
> HFileReaderImpl#validateBlockType - When throws Exception, the get block is gone. Want to return? Yeah, we've two cases to validateBlockType. one is reading from cache, another one is reading from hfile. we've abstracted the block for both cache types and hfiles ( ex release the block from heap will donothing), so here seems we should do release if throws IOException. > Only inside another condition we return and evict block readBlock - The got block is unused when we throw Exception on DBE type mismatch Em..we return null finally , seems the block also need to release the block.
Will take a look around all the exceptional paths and consider any other DBB leak issues.
Attachments
Issue Links
- is related to
-
HBASE-22480 Get block from BlockCache once and return this block to BlockCache twice make ref count error.
- Resolved