Junegunn Choi created HBASE-28985:
-------------------------------------
Summary: Fix memStoreSize metric for a table and add heap and
off-heap size metrics
Key: HBASE-28985
URL: https://issues.apache.org/jira/browse/HBASE-28985
Project: HBase
Issue Type: Bug
Components: metrics
Reporter: Junegunn Choi
The "memStoreSize" metric for a table is incorrect as it reports the sum of the
data size, the heap size, and the off-heap size, while "memStoreSize" metric
for a region or a region server is just the data size.
https://github.com/apache/hbase/blob/e082405d8e7fa5c9b89e7af3153f022731168ecb/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsTableWrapperAggregateImpl.java#L79-L80
We should fix it to report only the data size for consistency and add
additional metrics, similarly to HBASE-27892, not to lose the extra information
for understanding the flush behavior.
* {{memStoreHeapSize}}
* {{memStoreOffHeapSize}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)