Class OMClientRequestUtils

java.lang.Object
org.apache.hadoop.ozone.om.request.OMClientRequestUtils

public final class OMClientRequestUtils extends Object
Utility class for OMClientRequest. Validates that the bucket layout expected by the Request class is the same as the layout of the bucket being worked on.
  • Method Details

    • checkClientRequestPrecondition

      public static void checkClientRequestPrecondition(org.apache.hadoop.ozone.om.helpers.BucketLayout dbBucketLayout, org.apache.hadoop.ozone.om.helpers.BucketLayout reqClassBucketLayout) throws org.apache.hadoop.ozone.om.exceptions.OMException
      Throws:
      org.apache.hadoop.ozone.om.exceptions.OMException
    • isSnapshotBucket

      public static boolean isSnapshotBucket(org.apache.hadoop.ozone.om.OMMetadataManager omMetadataManager, org.apache.hadoop.ozone.om.helpers.OmKeyInfo keyInfo) throws IOException
      Throws:
      IOException
    • shouldLogClientRequestFailure

      public static boolean shouldLogClientRequestFailure(IOException exception)