Package io.debezium.connector.mysql
Class IncrementalSnapshotIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<T>
-
- io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
- io.debezium.connector.mysql.IncrementalSnapshotIT
-
- All Implemented Interfaces:
Testing
- Direct Known Subclasses:
ReadOnlyIncrementalSnapshotIT
public class IncrementalSnapshotIT extends AbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecords
-
Nested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer
-
-
Field Summary
Fields Modifier and Type Field Description protected UniqueDatabaseDATABASEprotected static StringSERVER_NAME-
Fields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
DB_HISTORY_PATH, ROW_COUNT
-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description IncrementalSnapshotIT()
-
Method Summary
-
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotWithSchemaChangesSupportTest
columnDefaultChanges, columnNullabilityChanges, renameTable, schemaChanges
-
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
alterTableAddColumnStatement, alterTableDropColumnStatement, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, getMaximumEnqueuedRecordCount, inserts, invalidTablesInTheList, pkFieldName, populate4PkTable, populateTable, populateTable, populateTable, sendAdHocSnapshotSignal, sendAdHocSnapshotSignal, snapshotOnly, snapshotOnlyWithRestart, snapshotPreceededBySchemaChange, startConnector, startConnector, startConnector, startConnector, tableDataCollectionId, updates, updatesLargeChunk, updatesWithRestart, valueFieldName, waitForConnectorToStart
-
Methods inherited from class io.debezium.embedded.AbstractConnectorTest
assertBeginTransaction, assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEndTransaction, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertOnlyTransactionRecordsToConsume, assertRecordTransactionMetadata, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, debug, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Field Detail
-
SERVER_NAME
protected static final String SERVER_NAME
- See Also:
- Constant Field Values
-
DATABASE
protected final UniqueDatabase DATABASE
-
-
Method Detail
-
before
public void before() throws SQLException- Throws:
SQLException
-
after
public void after()
-
config
protected Configuration.Builder config()
- Specified by:
configin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
connectorClass
protected Class<io.debezium.connector.mysql.MySqlConnector> connectorClass()
- Specified by:
connectorClassin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
databaseConnection
protected JdbcConnection databaseConnection()
- Specified by:
databaseConnectionin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
topicName
protected String topicName()
- Specified by:
topicNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
tableName
protected String tableName()
- Specified by:
tableNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
signalTableName
protected String signalTableName()
- Specified by:
signalTableNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
tableName
protected String tableName(String table)
- Specified by:
tableNamein classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
alterColumnStatement
protected String alterColumnStatement(String table, String column, String type)
- Specified by:
alterColumnStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
alterColumnSetNotNullStatement
protected String alterColumnSetNotNullStatement(String table, String column, String type)
- Specified by:
alterColumnSetNotNullStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
alterColumnDropNotNullStatement
protected String alterColumnDropNotNullStatement(String table, String column, String type)
- Specified by:
alterColumnDropNotNullStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
alterColumnSetDefaultStatement
protected String alterColumnSetDefaultStatement(String table, String column, String type, String defaultValue)
- Specified by:
alterColumnSetDefaultStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
alterColumnDropDefaultStatement
protected String alterColumnDropDefaultStatement(String table, String column, String type)
- Specified by:
alterColumnDropDefaultStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
executeRenameTable
protected void executeRenameTable(JdbcConnection connection, String newTable) throws SQLException
- Specified by:
executeRenameTablein classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>- Throws:
SQLException
-
createTableStatement
protected String createTableStatement(String newTable, String copyTable)
- Specified by:
createTableStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
-