[
https://issues.apache.org/jira/browse/HBASE-28985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Junegunn Choi updated HBASE-28985:
----------------------------------
Release Note:
The table-level memStoreSize metric was incorrectly summing data size, heap
size, and off-heap size together, while the same metric at the region and
region server levels reported only data size. This has been fixed so that
memStoreSize now consistently reports data size at all levels.
Two new metrics have been added at both the table and region levels:
- memStoreHeapSize: on-heap memstore size
- memStoreOffHeapSize: off-heap memstore size
> 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
> Assignee: Junegunn Choi
> Priority: Minor
> Labels: pull-request-available
> Fix For: 2.7.0, 3.0.0-beta-2, 2.6.5, 2.5.14
>
>
> 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)