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.SourceRecordsNested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer -
Field Summary
FieldsFields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
ROW_COUNT, SCHEMA_HISTORY_PATHFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()protected StringalterColumnDropDefaultStatement(String table, String column, String type) protected StringalterColumnDropNotNullStatement(String table, String column, String type) protected StringalterColumnSetDefaultStatement(String table, String column, String type, String defaultValue) protected StringalterColumnSetNotNullStatement(String table, String column, String type) protected StringalterColumnStatement(String table, String column, String type) voidbefore()protected Configuration.Builderconfig()protected Class<io.debezium.connector.mysql.MySqlConnector>protected StringcreateTableStatement(String newTable, String copyTable) protected JdbcConnectionprivate StringdataCollectionName(String table) protected voidexecuteRenameTable(JdbcConnection connection, String newTable) protected Configuration.BuildermutableConfig(boolean signalTableOnly, boolean storeOnlyCapturedDdl) protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprivate TableIdprivate TableIdtableNameId(String table) voidvoidprotected Stringvoidupdates()Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotWithSchemaChangesSupportTest
columnDefaultChanges, columnNullabilityChanges, renameTable, schemaChangesMethods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
alterTableAddColumnStatement, alterTableDropColumnStatement, consumeAnyRemainingIncrementalSnapshotEventsAndCheckForStopMessage, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, getMaximumEnqueuedRecordCount, getSignalTypeFieldName, inserts, invalidTablesInTheList, pkFieldName, populate4PkTable, populateTable, populateTable, populateTable, populateTables, populateTables, populateTableWithSpecificValue, removeNotYetCapturedCollectionFromInProgressIncrementalSnapshot, removeStartedCapturedCollectionFromInProgressIncrementalSnapshot, sendAdHocSnapshotSignal, sendAdHocSnapshotSignal, sendAdHocSnapshotSignalAndWait, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, sendAdHocSnapshotStopSignal, sendAdHocSnapshotStopSignalAndWait, sendPauseSignal, sendResumeSignal, shouldExecuteRegularSnapshotWhenAdditionalConditionEmpty, shouldSnapshotNewlyAddedTableToIncludeListAfterRestart, snapshotOnly, snapshotOnlyWithRestart, snapshotPreceededBySchemaChange, snapshotWithAdditionalCondition, snapshotWithAdditionalConditionWithRestart, snapshotWithAdditionalConditionWithSurrogateKey, snapshotWithRegexDataCollections, snapshotWithSurrogateKey, startConnector, startConnector, startConnector, startConnector, startConnectorWithSnapshot, stopCurrentIncrementalSnapshotWithAllCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, stopCurrentIncrementalSnapshotWithoutCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, testPauseDuringSnapshot, updatesLargeChunk, updatesWithRestart, valueFieldName, waitForCdcTransactionPropagation, waitForConnectorToStartMethods 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, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForNotInitialState, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
SERVER_NAME
- See Also:
-
DATABASE
-
-
Constructor Details
-
IncrementalSnapshotIT
public IncrementalSnapshotIT()
-
-
Method Details
-
before
- Throws:
SQLException
-
after
public void after() -
config
- Specified by:
configin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
mutableConfig
protected Configuration.Builder mutableConfig(boolean signalTableOnly, boolean storeOnlyCapturedDdl) - Specified by:
mutableConfigin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
connectorClass
- Specified by:
connectorClassin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
databaseConnection
- Specified by:
databaseConnectionin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
topicName
- Specified by:
topicNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
topicNames
- Specified by:
topicNamesin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
tableName
- Specified by:
tableNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
tableNames
- Specified by:
tableNamesin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
signalTableName
- Specified by:
signalTableNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
signalTableNameSanitized
- Overrides:
signalTableNameSanitizedin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
tableName
- Specified by:
tableNamein classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
tableDataCollectionId
- Overrides:
tableDataCollectionIdin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
tableDataCollectionIds
- Overrides:
tableDataCollectionIdsin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
dataCollectionName
-
tableNameId
-
tableNameId
-
alterColumnStatement
- Specified by:
alterColumnStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
alterColumnSetNotNullStatement
- Specified by:
alterColumnSetNotNullStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
alterColumnDropNotNullStatement
- 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
- Specified by:
alterColumnDropDefaultStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
executeRenameTable
- Specified by:
executeRenameTablein classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>- Throws:
SQLException
-
createTableStatement
- Specified by:
createTableStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
updates
- Overrides:
updatesin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>- Throws:
Exception
-
tableWithDatetime
- Throws:
Exception
-
tableWithZeroDate
- Throws:
Exception
-