[ 
https://issues.apache.org/jira/browse/HBASE-28313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hao Sun updated HBASE-28313:
----------------------------
    Description: 
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.

patch:[HBASE-28313|https://github.com/apache/hbase/pull/5641]

  was:
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.


> 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
>            Priority: Major
>             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.
> patch:[HBASE-28313|https://github.com/apache/hbase/pull/5641]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to