@Override
  public void onComplete(TSStatus response) {
    // Put response
    responseMap.put(requestId, response);

    if (response.getCode() == TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
      // Remove only if success
      nodeLocationMap.remove(requestId);
      if (!keepSilent) {
        LOGGER.info("Successfully {} on DataNode: {}", requestType, formattedTargetLocation);
      }
    } else {
      if (!keepSilent) {
        LOGGER.error(
            "Failed to {} on DataNode: {}, response: {}",
            requestType,
            formattedTargetLocation,
            response);
      }
    }

    // Always CountDown
    countDownLatch.countDown();
  }
General RPC handler for TSStatus response type.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/client/dn/AsyncTSStatusRPCHandler.java