Package io.trino.testing
Class BaseFailureRecoveryTest
java.lang.Object
io.trino.testing.AbstractTestQueryFramework
io.trino.testing.BaseFailureRecoveryTest
- Direct Known Subclasses:
ExtendedFailureRecoveryTest
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseFailureRecoveryTest(RetryPolicy retryPolicy) protectedBaseFailureRecoveryTest(RetryPolicy retryPolicy, int maxParallelTestConcurrency) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanassertThatQuery(String query) protected static Function<MaterializedResult,Integer> protected static Function<MaterializedResult,Integer> protected voidcheckTemporaryTables(Set<String> queryIds) protected final QueryRunnerprotected abstract QueryRunnercreateQueryRunner(List<io.trino.tpch.TpchTable<?>> requiredTpchTables, Map<String, String> configProperties, Map<String, String> coordinatorProperties) protected static Function<MaterializedResult,Integer> protected RetryPolicyprotected static Function<MaterializedResult,Integer> protected static Function<MaterializedResult,Integer> protected Object[][]moreParallelTests(Object[][] some, Object[]... more) protected Object[]parallelTest(String name, Runnable runnable) Object[][]protected static Function<MaterializedResult,Integer> protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidtestNonSelect(Optional<Session> session, Optional<String> setupQuery, String query, Optional<String> cleanupQuery, boolean writesData) voidtestParallel(Runnable runnable) protected voidprotected voidprotected voidtestSelect(String query) protected voidtestSelect(String query, Optional<Session> session) protected voidprotected voidtestTableModification(Optional<Session> session, Optional<String> setupQuery, String query, Optional<String> cleanupQuery) protected voidprotected voidprotected voidMethods inherited from class io.trino.testing.AbstractTestQueryFramework
assertAccessAllowed, assertAccessAllowed, assertAccessDenied, assertAccessDenied, assertExplain, assertExplain, assertExplainAnalyze, assertExplainAnalyze, assertNoDataRead, assertQuery, assertQuery, assertQuery, assertQuery, assertQuery, assertQuery, assertQueryEventually, assertQueryFails, assertQueryFails, assertQueryFailsEventually, assertQueryOrdered, assertQueryOrdered, assertQueryOrdered, assertQueryOrdered, assertQueryReturnsEmptyResult, assertQueryReturnsEmptyResult, assertQueryStats, assertQuerySucceeds, assertQuerySucceeds, assertTableColumnNames, assertUpdate, assertUpdate, assertUpdate, assertUpdate, assertUpdate, assertUpdate, assertUpdate, close, closeAfterClass, computeActual, computeActual, computeExpected, computeScalar, computeScalar, ensureTestNamingConvention, executeExclusively, formatSqlText, getDistributedQueryRunner, getDynamicFilteringStats, getExplainPlan, getExplainPlan, getGraphvizExplainPlan, getNodeCount, getQualifiedTableName, getQueryRunner, getSession, init, inTransaction, newTransaction, noJoinReordering, noJoinReordering, query, query, searchScanFilterAndProjectOperatorStats, skipTestUnless
-
Constructor Details
-
BaseFailureRecoveryTest
-
BaseFailureRecoveryTest
-
-
Method Details
-
getRetryPolicy
-
createQueryRunner
- Specified by:
createQueryRunnerin classAbstractTestQueryFramework- Throws:
Exception
-
createQueryRunner
protected abstract QueryRunner createQueryRunner(List<io.trino.tpch.TpchTable<?>> requiredTpchTables, Map<String, String> configProperties, Map<String, throws ExceptionString> coordinatorProperties) - Throws:
Exception
-
areWriteRetriesSupported
protected abstract boolean areWriteRetriesSupported() -
testSelect
-
testSelect
-
testSelect
-
parallelTests
-
testParallel
-
testCreateTable
protected void testCreateTable() -
testInsert
protected void testInsert() -
testDelete
protected void testDelete() -
testDeleteWithSubquery
protected void testDeleteWithSubquery() -
testUpdate
protected void testUpdate() -
testUpdateWithSubquery
protected void testUpdateWithSubquery() -
testAnalyzeTable
protected void testAnalyzeTable() -
testMerge
protected void testMerge() -
testRefreshMaterializedView
protected void testRefreshMaterializedView() -
testExplainAnalyze
protected void testExplainAnalyze() -
testRequestTimeouts
protected void testRequestTimeouts() -
testTableModification
-
testTableModification
-
testNonSelect
-
assertThatQuery
-
checkTemporaryTables
-
rootStage
-
boundaryCoordinatorStage
-
boundaryDistributedStage
-
intermediateDistributedStage
-
distributedStage
-
leafStage
-
parallelTest
-
moreParallelTests
-