[ 
https://issues.apache.org/jira/browse/HBASE-22836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16905645#comment-16905645
 ] 

Xu Cang commented on HBASE-22836:
---------------------------------

So, if I understand you correctly, you meant,
{code:java}
public int getMaxSize() {
 return MAX_SIZE;
}{code}
should be

 
{code:java}
public int getMaxSize() {
 return CachedData.MAX_SIZE;
}{code}
Correct?

Do you want to submit a patch for this? Thanks.

> MemcachedBlockCache parameter error
> -----------------------------------
>
>                 Key: HBASE-22836
>                 URL: https://issues.apache.org/jira/browse/HBASE-22836
>             Project: HBase
>          Issue Type: Bug
>          Components: BlockCache
>    Affects Versions: 1.4.9, 1.4.10
>            Reporter: Zhao
>            Priority: Major
>
> When cache a block,the expiration is always set MAX_SIZE (which is a static 
> final field).
> MAX_SIZE was mistakenly thought to be the max size of block. In fact, this 
> parameter represents the expiration of the cached block. MAX_SIZE should be 
> set 0 which means forever.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to