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

ASF GitHub Bot updated HBASE-29014:
-----------------------------------
    Labels: pull-request-available  (was: )

> The RegionServer metrics of WALs is incorrect
> ---------------------------------------------
>
>                 Key: HBASE-29014
>                 URL: https://issues.apache.org/jira/browse/HBASE-29014
>             Project: HBase
>          Issue Type: Bug
>          Components: metrics
>         Environment: master
>            Reporter: guluo
>            Priority: Major
>              Labels: pull-request-available
>
> RegionServer Metrics of wals (file count and file size) is incorrect.
> We should should recalculate every time, rather than continuously 
> accumulating them.
>  
> // MetricsRegionServerWrapperImpl.RegionServerMetricsWrapperRunnable.run()
> List<WALProvider> providers = 
> regionServer.getWalFactory().getAllWALProviders();
> for (WALProvider provider : providers) {
>     numWALFiles += provider.getNumLogFiles();
>     walFileSize += provider.getLogFileSize();
> }



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to