Zheng Hu created HBASE-21355:
--------------------------------
Summary: HStore's storeSize is calculated repeatedly which causing
the confusing region split
Key: HBASE-21355
URL: https://issues.apache.org/jira/browse/HBASE-21355
Project: HBase
Issue Type: Bug
Reporter: Zheng Hu
Assignee: Zheng Hu
When testing the branch-2's write performance in our internal cluster, we
found that the region will be inexplicably split.
We use the default ConstantSizeRegionSplitPolicy and
hbase.hregion.max.filesize=40G,but the region will be split even if its bytes
size is less than 40G(only ~6G).
Checked the code, I found that the following path will accumulate the store's
storeSize to a very big value, because the path has no reset..
{code}
RsRpcServices#getRegionInfo
-> HRegion#isMergeable
-> HRegion#hasReferences
-> HStore#hasReferences
-> HStore#openStoreFiles
{code}
BTW, we seems forget to maintain the read replica's storeSize when
openStoreFiles.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)