Search in sources :

Example 1 with ThrottlingException

use of com.facebook.presto.verifier.framework.ThrottlingException in project presto by prestodb.

the class TestPrestoExceptionClassifier method assertThrottlingException.

private void assertThrottlingException(QueryException queryException, QueryStage queryStage) {
    assertTrue(queryException instanceof ThrottlingException);
    assertEquals(queryException.getQueryStage(), queryStage);
    ThrottlingException exception = (ThrottlingException) queryException;
    assertTrue(exception.isRetryable());
}
Also used : ThrottlingException(com.facebook.presto.verifier.framework.ThrottlingException)

Aggregations

ThrottlingException (com.facebook.presto.verifier.framework.ThrottlingException)1