Class DataScanResult
java.lang.Object
org.apache.hadoop.ozone.container.ozoneimpl.MetadataScanResult
org.apache.hadoop.ozone.container.ozoneimpl.DataScanResult
- All Implemented Interfaces:
ScanResult
Represents the result of a container data scan.
A container data scan will do a full metadata check, and check the contents of all block data within the container.
The result will contain all the errors seen while scanning the container, and a ContainerMerkleTree representing
the data that the scan saw on the disk when it ran.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataScanResultdeleted()Constructs a data scan result representing a container that was deleted during the scan.static DataScanResultfromErrors(List<ContainerScanError> errors, ContainerMerkleTreeWriter dataTree) Constructs a data scan result whose health will be determined based on the presence of errors.static DataScanResultunhealthyMetadata(MetadataScanResult result) Constructs an unhealthy data scan result which was aborted before scanning any data due to a metadata error.Methods inherited from class org.apache.hadoop.ozone.container.ozoneimpl.MetadataScanResult
fromErrors, getErrors, hasErrors, isDeleted, toString
-
Method Details
-
unhealthyMetadata
Constructs an unhealthy data scan result which was aborted before scanning any data due to a metadata error. This data scan result will have an empty data tree with a zero checksum to indicate that no data was scanned. -
deleted
Constructs a data scan result representing a container that was deleted during the scan. -
fromErrors
public static DataScanResult fromErrors(List<ContainerScanError> errors, ContainerMerkleTreeWriter dataTree) Constructs a data scan result whose health will be determined based on the presence of errors. -
getDataTree
-