Search in sources :

Example 1 with ErrorType

use of com.facebook.presto.spi.ErrorType in project presto by prestodb.

the class PrestoSparkExecutionExceptionFactory method isRetryable.

private static boolean isRetryable(ExecutionFailureInfo executionFailureInfo) {
    ErrorCode errorCode = executionFailureInfo.getErrorCode();
    if (errorCode == null) {
        return true;
    }
    ErrorType type = errorCode.getType();
    return type == INTERNAL_ERROR || type == EXTERNAL;
}
Also used : ErrorType(com.facebook.presto.spi.ErrorType) ErrorCode(com.facebook.presto.spi.ErrorCode)

Aggregations

ErrorCode (com.facebook.presto.spi.ErrorCode)1 ErrorType (com.facebook.presto.spi.ErrorType)1