Search in sources :

Example 1 with ClusterConnectionException

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

the class TestPrestoExceptionClassifier method assertClusterConnectionException.

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

Aggregations

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