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

Enis Soztutar commented on HBASE-15722:
---------------------------------------

I think this was intended to be: provider.getLogFileSize() + 
metaProvider.getLogFileSize() from HBASE-14306
{code}
-        walFileSize = (provider == null ? 0 : provider.getLogFileSize()) +
-            (provider == null ? 0 : provider.getLogFileSize());
{code}

{{doReplaceWriter()}} returns the length of the WAL file. Not sure it is the 
correct calculation though. 

> Size. WAL Files (bytes) in regionserver status page displays negative values
> ----------------------------------------------------------------------------
>
>                 Key: HBASE-15722
>                 URL: https://issues.apache.org/jira/browse/HBASE-15722
>             Project: HBase
>          Issue Type: Bug
>          Components: UI
>    Affects Versions: 2.0.0
>            Reporter: Samir Ahmic
>            Assignee: Samir Ahmic
>            Priority: Minor
>         Attachments: HBASE-15722_v0.patch, WALs.png
>
>
> Here is the line from ServerMetricTmpl.jamon
> {code}
> TraditionalBinaryPrefix.long2String(mWrap.getWALFileSize(), "B", 1)
> {code} 
>  I will change this to StringUtils.humanSize()



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

Reply via email to