Hao Sun created HBASE-28313:
-------------------------------
Summary: StorefileRefresherChore should not refresh readonly table
Key: HBASE-28313
URL: https://issues.apache.org/jira/browse/HBASE-28313
Project: HBase
Issue Type: Improvement
Components: regionserver
Affects Versions: 2.4.17
Reporter: Hao Sun
Fix For: 2.4.17
According to semantics, when StoreFile Refresher is turned on, only the area
with replicas should be refreshed. *Tables with read-only attributes will not
be refreshed.*
There are the following scenarios: Assume that some tables in the database have
replica enabled, while others do not. If a table that does not have replica
enabled needs to perform migration tasks - first enable readonly and then
export the snapshot, StorefileRefresherChore will always refresh the table that
does not have replica enabled but performs migration tasks. This is obviously
illogical.
Therefore, StorefileRefresherChore needs to determine whether the region has a
read-only copy, and refresh it if it has a read-only copy. And tables with
read-only properties are not refreshed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)