Class MigrationStoreFileTracker
java.lang.Object
org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerBase
org.apache.hadoop.hbase.regionserver.storefiletracker.MigrationStoreFileTracker
- All Implemented Interfaces:
StoreFileTracker
A store file tracker used for migrating between store file tracker implementations.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final StoreFileTrackerBase
static final String
private final StoreFileTrackerBase
static final String
Fields inherited from class org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerBase
conf, ctx, isPrimaryReplica
-
Constructor Summary
ConstructorDescriptionMigrationStoreFileTracker
(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, StoreContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doAddCompactionResults
(Collection<StoreFileInfo> compactedFiles, Collection<StoreFileInfo> newFiles) protected void
doAddNewStoreFiles
(Collection<StoreFileInfo> newFiles) protected List<StoreFileInfo>
doLoadStoreFiles
(boolean readOnly) For primary replica, we will call load once when opening a region, and the implementation could choose to do some cleanup work.protected void
doSetStoreFiles
(Collection<StoreFileInfo> files) (package private) static Class<? extends StoreFileTracker>
getDstTrackerClass
(org.apache.hadoop.conf.Configuration conf) (package private) static Class<? extends StoreFileTracker>
getSrcTrackerClass
(org.apache.hadoop.conf.Configuration conf) boolean
Whether the implementation of this tracker requires you to write to temp directory first, i.e, does not allow broken store files under the actual data directory.Methods inherited from class org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerBase
add, createWriter, getTrackerName, load, replace, set, updateWithTrackerConfigs
-
Field Details
-
SRC_IMPL
- See Also:
-
DST_IMPL
- See Also:
-
src
-
dst
-
-
Constructor Details
-
MigrationStoreFileTracker
public MigrationStoreFileTracker(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, StoreContext ctx)
-
-
Method Details
-
requireWritingToTmpDirFirst
Description copied from interface:StoreFileTracker
Whether the implementation of this tracker requires you to write to temp directory first, i.e, does not allow broken store files under the actual data directory. -
doLoadStoreFiles
Description copied from class:StoreFileTrackerBase
For primary replica, we will call load once when opening a region, and the implementation could choose to do some cleanup work. So here we usereadOnly
to indicate that whether you are allowed to do the cleanup work. For secondary replicas, we will setreadOnly
totrue
.- Specified by:
doLoadStoreFiles
in classStoreFileTrackerBase
- Throws:
IOException
-
doAddNewStoreFiles
- Specified by:
doAddNewStoreFiles
in classStoreFileTrackerBase
- Throws:
IOException
-
doAddCompactionResults
protected void doAddCompactionResults(Collection<StoreFileInfo> compactedFiles, Collection<StoreFileInfo> newFiles) throws IOException - Specified by:
doAddCompactionResults
in classStoreFileTrackerBase
- Throws:
IOException
-
doSetStoreFiles
- Specified by:
doSetStoreFiles
in classStoreFileTrackerBase
- Throws:
IOException
-
getSrcTrackerClass
static Class<? extends StoreFileTracker> getSrcTrackerClass(org.apache.hadoop.conf.Configuration conf) -
getDstTrackerClass
static Class<? extends StoreFileTracker> getDstTrackerClass(org.apache.hadoop.conf.Configuration conf)
-