[ https://issues.apache.org/jira/browse/HBASE-22185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16813010#comment-16813010 ]
Anoop Sam John commented on HBASE-22185: ---------------------------------------- To get to exception might not be that likely (I mean when Off heap BC).. Still it will be better to return in finally. > RAMQueueEntry#writeToCache should freeBlock if any exception encountered > instead of the IOException catch block > ---------------------------------------------------------------------------------------------------------------- > > Key: HBASE-22185 > URL: https://issues.apache.org/jira/browse/HBASE-22185 > Project: HBase > Issue Type: Bug > Reporter: Zheng Hu > Assignee: Zheng Hu > Priority: Major > > When preparing patch for HBASE-22159, I found that if thrown an > AssertionError in RAMQueueEntry#writeToCache, the bucketAllocator won't free > its memory. > This is an memory leak bug, and should be fixed in almost all 2.x branches. > will also check branch-1.x -- This message was sent by Atlassian JIRA (v7.6.3#76005)