You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2009/05/01 22:53:31 UTC
[jira] Commented: (HBASE-1192) LRU-style map for the block cache
[ https://issues.apache.org/jira/browse/HBASE-1192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705114#action_12705114 ]
Shalin Shekhar Mangar commented on HBASE-1192:
----------------------------------------------
Can someone elaborate on why a custom implementation of an LRUCache is being made? I guess you can achieve memory-awareness by extending or wrapping a LinkedHashMap.
Also, is the synchronized get/put alright for this use-case? Solr had some issues with synchronized LRUCache when the cache was hit thousands of times per second. SOLR-667 has a good implementation that you can look at.
I do not have the complete background so I may have missed something.
> LRU-style map for the block cache
> ---------------------------------
>
> Key: HBASE-1192
> URL: https://issues.apache.org/jira/browse/HBASE-1192
> Project: Hadoop HBase
> Issue Type: New Feature
> Components: regionserver
> Reporter: Jonathan Gray
> Assignee: ryan rawson
> Priority: Blocker
> Fix For: 0.20.0
>
> Attachments: hbase-1192-v1.patch, hbase-1192-v2.patch, hbase-1192-v3.patch
>
>
> We need to decide what structure to use to back the block cache. The primary decision is whether to continue using SoftReferences or to build our own structure.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.