HBASE-25096 WAL size in RegionServer UI is wrong (#2456)
Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
parent
bd2dd21e48
commit
4941fc02ea
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue