[ 
https://issues.apache.org/jira/browse/HBASE-12393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ChiaPing Tsai updated HBASE-12393:
----------------------------------
    Attachment: HBASE-12393.patch

To avoid invoking disabled blockcache's method, we use an additional 
statement(else if) to evaluate the value of blockcache.
If blockcache is null, it will display "Block Cache is disabled" on the web 
page of blockcache stats.


> The regionserver web will throw exception if we disable block cache
> -------------------------------------------------------------------
>
>                 Key: HBASE-12393
>                 URL: https://issues.apache.org/jira/browse/HBASE-12393
>             Project: HBase
>          Issue Type: Bug
>          Components: regionserver
>    Affects Versions: 0.98.7
>         Environment: ubuntu 12.04 64bits, hadoop-2.2.0, hbase-0.98.7-hadoop2
>            Reporter: ChiaPing Tsai
>            Priority: Minor
>         Attachments: HBASE-12393.patch
>
>
> The CacheConfig.getBlockCache() will return the null point when we set 
> hfile.block.cache.size to zero.
> It caused the BlockCacheTmplImpl.java:123 to throw null exception.
> {code}
> org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(cacheConfig.getBlockCache().size())),
>  jamonWriter);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to