hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/ksm/KeySpaceManager.java
@Override
  public OpenKeySession openKey(KsmKeyArgs args) throws IOException {
    try {
      metrics.incNumKeyAllocates();
      return keyManager.openKey(args);
    } catch (Exception ex) {
      metrics.incNumKeyAllocateFails();
      throw ex;
    }
  }
/**
   * Allocate a key.
   *
   * @param args - attributes of the key.
   * @return KsmKeyInfo - the info about the allocated key.
   * @throws IOException
   */
Allocate a key.
@param args - attributes of the key.
@return KsmKeyInfo - the info about the allocated key.
Allocate a key . @param args - attributes of the key . @return KsmKeyInfo - the info about the allocated key .
@Override
  public OpenKeySession openKey(KsmKeyArgs args) throws IOException {
    try {
      metrics.incNumKeyAllocates();
      return keyManager.openKey(args);
    } catch (Exception ex) {
      metrics.incNumKeyAllocateFails();
      throw ex;
    }
  }
@ Override public OpenKeySession openKey ( KsmKeyArgs args ) throws IOException { try { metrics . incNumKeyAllocates ( ) ; return keyManager . openKey ( args ) ; } catch ( Exception ex ) { metrics . incNumKeyAllocateFails ( ) ; throw ex ; } }
Allocate a key.
Allocate a key .