Class DataScanResult

java.lang.Object
org.apache.hadoop.ozone.container.ozoneimpl.MetadataScanResult
org.apache.hadoop.ozone.container.ozoneimpl.DataScanResult
All Implemented Interfaces:
ScanResult

public final class DataScanResult extends MetadataScanResult
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 Details

    • unhealthyMetadata

      public static DataScanResult unhealthyMetadata(MetadataScanResult result)
      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

      public static DataScanResult 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

      public ContainerMerkleTreeWriter getDataTree()