Class StorefileRefresherChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.regionserver.StorefileRefresherChore
- All Implemented Interfaces:
Runnable
A chore for refreshing the store files for secondary regions hosted in the region server. This
chore should run periodically with a shorter interval than HFile TTL
("hbase.master.hfilecleaner.ttl", default 5 minutes). It ensures that if we cannot refresh files
longer than that amount, the region will stop serving read requests because the referenced files
might have been deleted (by the primary region).
-
Field Summary
Modifier and TypeFieldDescription(package private) static final int
private long
private static final org.slf4j.Logger
private boolean
private int
private HRegionServer
static final String
Whether all storefiles should be refreshed, as opposed to just hbase:meta's Meta region doesn't have WAL replication for replicas enabled yetstatic final String
The period (in milliseconds) for refreshing the store files for the secondary regions. -
Constructor Summary
ConstructorDescriptionStorefileRefresherChore
(int period, boolean onlyMetaRefresh, HRegionServer regionServer, Stoppable stoppable) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
chore()
The task to execute on each scheduled execution of the Choreprotected boolean
isRegionStale
(String encodedName, long time) Methods inherited from class org.apache.hadoop.hbase.ScheduledChore
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNow
-
Field Details
-
LOG
-
REGIONSERVER_STOREFILE_REFRESH_PERIOD
The period (in milliseconds) for refreshing the store files for the secondary regions.- See Also:
-
DEFAULT_REGIONSERVER_STOREFILE_REFRESH_PERIOD
- See Also:
-
REGIONSERVER_META_STOREFILE_REFRESH_PERIOD
Whether all storefiles should be refreshed, as opposed to just hbase:meta's Meta region doesn't have WAL replication for replicas enabled yet- See Also:
-
regionServer
-
hfileTtl
-
period
-
onlyMetaRefresh
-
lastRefreshTimes
-
-
Constructor Details
-
StorefileRefresherChore
public StorefileRefresherChore(int period, boolean onlyMetaRefresh, HRegionServer regionServer, Stoppable stoppable)
-
-
Method Details
-
chore
Description copied from class:ScheduledChore
The task to execute on each scheduled execution of the Chore- Specified by:
chore
in classScheduledChore
-
isRegionStale
-