public static boolean needRetry(TSStatus status) {
    // succeed operation should never retry
    if (status == null || status.getCode() == TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
      return false;
    }
    // always retry while node is in not running case
    if (!COMMON_CONFIG.isRunning()) {
      return true;
    } else {
      return needRetryHelper(status);
    }
  }
@param statusMap index -> status
@param size the total number of status to generate
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/StatusUtils.java