Package org.apache.hadoop.ozone.om
Class SstFilteringService
java.lang.Object
org.apache.hadoop.hdds.utils.BackgroundService
org.apache.hadoop.ozone.om.SstFilteringService
- All Implemented Interfaces:
org.apache.hadoop.ozone.lock.BootstrapStateHandler
public class SstFilteringService
extends org.apache.hadoop.hdds.utils.BackgroundService
implements org.apache.hadoop.ozone.lock.BootstrapStateHandler
When snapshots are taken, an entire snapshot of the
OM RocksDB is captured and it will contain SST files corresponding
to all volumes/buckets and keys and also have data from
all the tables (columnFamilies) defined in the rocksdb
This is a background service which will cleanup and filter out
all the irrelevant and safe to delete sst files that don't correspond
to the bucket on which the snapshot was taken.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hdds.utils.BackgroundService
org.apache.hadoop.hdds.utils.BackgroundService.PeriodicalTaskNested classes/interfaces inherited from interface org.apache.hadoop.ozone.lock.BootstrapStateHandler
org.apache.hadoop.ozone.lock.BootstrapStateHandler.Lock -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSstFilteringService(long interval, TimeUnit unit, long serviceTimeout, OzoneManager ozoneManager, org.apache.hadoop.hdds.conf.OzoneConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.ozone.lock.BootstrapStateHandler.Lockorg.apache.hadoop.hdds.utils.BackgroundTaskQueuegetTasks()static booleanisSstFiltered(org.apache.hadoop.hdds.conf.OzoneConfiguration ozoneConfiguration, org.apache.hadoop.ozone.om.helpers.SnapshotInfo snapshotInfo) voidpause()voidresume()voidshutdown()voidstart()Methods inherited from class org.apache.hadoop.hdds.utils.BackgroundService
execTaskCompletion, getExecutorService, getFuture, getIntervalMillis, getThreadCount, runPeriodicalTaskNow, setInterval, setPoolSize, setServiceTimeoutInNanos
-
Field Details
-
SST_FILTERED_FILE
- See Also:
-
-
Constructor Details
-
SstFilteringService
public SstFilteringService(long interval, TimeUnit unit, long serviceTimeout, OzoneManager ozoneManager, org.apache.hadoop.hdds.conf.OzoneConfiguration configuration)
-
-
Method Details
-
isSstFiltered
public static boolean isSstFiltered(org.apache.hadoop.hdds.conf.OzoneConfiguration ozoneConfiguration, org.apache.hadoop.ozone.om.helpers.SnapshotInfo snapshotInfo) -
start
public void start()- Overrides:
startin classorg.apache.hadoop.hdds.utils.BackgroundService
-
pause
public void pause() -
resume
public void resume() -
getTasks
public org.apache.hadoop.hdds.utils.BackgroundTaskQueue getTasks()- Specified by:
getTasksin classorg.apache.hadoop.hdds.utils.BackgroundService
-
getSnapshotFilteredCount
-
getBootstrapStateLock
public org.apache.hadoop.ozone.lock.BootstrapStateHandler.Lock getBootstrapStateLock()- Specified by:
getBootstrapStateLockin interfaceorg.apache.hadoop.ozone.lock.BootstrapStateHandler
-
shutdown
public void shutdown()- Overrides:
shutdownin classorg.apache.hadoop.hdds.utils.BackgroundService
-