private static boolean needRetryHelperForSingleStatus(int statusCode) {
    return NEED_RETRY.contains(statusCode)
        || (COMMON_CONFIG.isRetryForUnknownErrors() && UNKNOWN_ERRORS.contains(statusCode));
  }
@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