Class KeyValueContainerCheck
java.lang.Object
org.apache.hadoop.ozone.container.keyvalue.KeyValueContainerCheck
Class to run integrity checks on Datanode Containers.
Provide infra for Data Scrubbing
-
Constructor Summary
ConstructorsConstructorDescriptionKeyValueContainerCheck(org.apache.hadoop.hdds.conf.ConfigurationSource conf, KeyValueContainer container) -
Method Summary
Modifier and TypeMethodDescriptionRun basic integrity checks on container metadata.fullCheck(org.apache.hadoop.hdfs.util.DataTransferThrottler throttler, org.apache.hadoop.hdfs.util.Canceler canceler) full checks comprise scanning all metadata inside the container.
-
Constructor Details
-
KeyValueContainerCheck
public KeyValueContainerCheck(org.apache.hadoop.hdds.conf.ConfigurationSource conf, KeyValueContainer container)
-
-
Method Details
-
fastCheck
Run basic integrity checks on container metadata. These checks do not look inside the metadata files. Applicable for OPEN containers.- Returns:
- true : integrity checks pass, false : otherwise.
- Throws:
InterruptedException
-
fullCheck
public DataScanResult fullCheck(org.apache.hadoop.hdfs.util.DataTransferThrottler throttler, org.apache.hadoop.hdfs.util.Canceler canceler) throws InterruptedException full checks comprise scanning all metadata inside the container. Including the KV database. These checks are intrusive, consume more resources compared to fast checks and should only be done on Closed or Quasi-closed Containers. Concurrency being limited to delete workflows.fullCheck is a superset of fastCheck
- Returns:
- true : integrity checks pass, false : otherwise.
- Throws:
InterruptedException
-