@Override
 public void okResponse(byte[] ok, BackendConnection conn) {
   if (this.cmdHandler.relaseConOnOK()) {
     session.releaseConnection(conn);
   } else {
     session.releaseConnectionIfSafe(conn, LOGGER.isDebugEnabled(), false);
   }
   if (this.finished()) {
     cmdHandler.okResponse(session, ok);
     if (cmdHandler.isAutoClearSessionCons()) {
       session.clearResources(false);
     }
   }
 }
  @Override
  public void errorResponse(byte[] err, BackendConnection conn) {
    faileCount.incrementAndGet();

    if (this.cmdHandler.releaseConOnErr()) {
      session.releaseConnection(conn);
    } else {

      session.releaseConnectionIfSafe(conn, LOGGER.isDebugEnabled(), false);
    }
    if (this.finished()) {
      cmdHandler.errorResponse(session, err, this.nodeCount, this.faileCount.get());
      if (cmdHandler.isAutoClearSessionCons()) {
        session.clearResources(session.getSource().isTxInterrupted());
      }
    }
  }