HBASE-25096 WAL size in RegionServer UI is wrong (#2456)

Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
Toshihiro Suzuki 2020-09-28 14:47:18 +09:00
parent bd2dd21e48
commit 4941fc02ea
1 changed files with 1 additions and 1 deletions

View File

@ -835,7 +835,7 @@ class MetricsRegionServerWrapperImpl
numWALFiles = (provider == null ? 0 : provider.getNumLogFiles()) + numWALFiles = (provider == null ? 0 : provider.getNumLogFiles()) +
(metaProvider == null ? 0 : metaProvider.getNumLogFiles()); (metaProvider == null ? 0 : metaProvider.getNumLogFiles());
walFileSize = (provider == null ? 0 : provider.getLogFileSize()) + walFileSize = (provider == null ? 0 : provider.getLogFileSize()) +
(provider == null ? 0 : provider.getLogFileSize()); (metaProvider == null ? 0 : metaProvider.getLogFileSize());
// Copy over computed values so that no thread sees half computed values. // Copy over computed values so that no thread sees half computed values.
numStores = tempNumStores; numStores = tempNumStores;
numStoreFiles = tempNumStoreFiles; numStoreFiles = tempNumStoreFiles;