hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/ksm/KeySpaceManager.java
@Override
  public void createBucket(KsmBucketInfo bucketInfo) throws IOException {
    try {
      metrics.incNumBucketCreates();
      bucketManager.createBucket(bucketInfo);
    } catch (Exception ex) {
      metrics.incNumBucketCreateFails();
      throw ex;
    }
  }
/**
   * Creates a bucket.
   *
   * @param bucketInfo - BucketInfo to create bucket.
   * @throws IOException
   */
Creates a bucket.
@param bucketInfo - BucketInfo to create bucket.
Creates a bucket . @param bucketInfo - BucketInfo to create bucket .
@Override
  public void createBucket(KsmBucketInfo bucketInfo) throws IOException {
    try {
      metrics.incNumBucketCreates();
      bucketManager.createBucket(bucketInfo);
    } catch (Exception ex) {
      metrics.incNumBucketCreateFails();
      throw ex;
    }
  }
@ Override public void createBucket ( KsmBucketInfo bucketInfo ) throws IOException { try { metrics . incNumBucketCreates ( ) ; bucketManager . createBucket ( bucketInfo ) ; } catch ( Exception ex ) { metrics . incNumBucketCreateFails ( ) ; throw ex ; } }
Creates a bucket.
Creates a bucket .