hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/client/ContainerOperationClient.java
@Override
  public void deleteContainer(Pipeline pipeline, boolean force)
      throws IOException {
    XceiverClientSpi client = null;
    try {
      client = xceiverClientManager.acquireClient(pipeline);
      String traceID = UUID.randomUUID().toString();
      ContainerProtocolCalls.deleteContainer(client, force, traceID);
      storageContainerLocationClient
          .deleteContainer(pipeline.getContainerName());
      if (LOG.isDebugEnabled()) {
        LOG.debug("Deleted container {}, leader: {}, machines: {} ",
            pipeline.getContainerName(),
            pipeline.getLeader(),
            pipeline.getMachines());
      }
    } finally {
      if (client != null) {
        xceiverClientManager.releaseClient(client);
      }
    }
  }
/**
   * Delete the container, this will release any resource it uses.
   * @param pipeline - Pipeline that represents the container.
   * @param force - True to forcibly delete the container.
   * @throws IOException
   */
Delete the container, this will release any resource it uses.
@param pipeline - Pipeline that represents the container.
@param force - True to forcibly delete the container.
Delete the container this will release any resource it uses . @param pipeline - Pipeline that represents the container . @param force - True to forcibly delete the container .
@Override
  public void deleteContainer(Pipeline pipeline, boolean force)
      throws IOException {
    XceiverClientSpi client = null;
    try {
      client = xceiverClientManager.acquireClient(pipeline);
      String traceID = UUID.randomUUID().toString();
      ContainerProtocolCalls.deleteContainer(client, force, traceID);
      storageContainerLocationClient
          .deleteContainer(pipeline.getContainerName());
      if (LOG.isDebugEnabled()) {
        LOG.debug("Deleted container {}, leader: {}, machines: {} ",
            pipeline.getContainerName(),
            pipeline.getLeader(),
            pipeline.getMachines());
      }
    } finally {
      if (client != null) {
        xceiverClientManager.releaseClient(client);
      }
    }
  }
@ Override public void deleteContainer ( Pipeline pipeline , boolean force ) throws IOException { XceiverClientSpi client = null ; try { client = xceiverClientManager . acquireClient ( pipeline ) ; String traceID = UUID . randomUUID ( ) . toString ( ) ; ContainerProtocolCalls . deleteContainer ( client , force , traceID ) ; storageContainerLocationClient . deleteContainer ( pipeline . getContainerName ( ) ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Deleted container {}, leader: {}, machines: {} " , pipeline . getContainerName ( ) , pipeline . getLeader ( ) , pipeline . getMachines ( ) ) ; } } finally { if ( client != null ) { xceiverClientManager . releaseClient ( client ) ; } } }
Delete the container, this will release any resource it uses.
Delete the container this will release any resource it uses .