Package io.debezium.connector.mysql
Class IncrementalSnapshotIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<T>
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
kafkaFields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
PARTITION_NO, ROW_COUNT, SCHEMA_HISTORY_PATHFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, 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 Stringprotected Class<io.debezium.connector.mysql.MySqlConnector>protected StringcreateTableStatement(String newTable, String copyTable) protected JdbcConnectionprivate StringdataCollectionName(String table) protected voidexecuteRenameTable(JdbcConnection connection, String newTable) voidprotected Configuration.BuildermutableConfig(boolean signalTableOnly, boolean storeOnlyCapturedDdl) protected Stringprotected Stringprotected Stringprotected Stringserver()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
consumeAnyRemainingIncrementalSnapshotEventsAndCheckForStopMessage, defaultIncrementalSnapshotChunkSize, getSignalsTopic, getSignalTypeFieldName, insertDeleteWatermarkingStrategy, insertInsertWatermarkingStrategy, inserts, insertsWithKafkaSnapshotSignal, insertsWithoutPks, insertsWithoutPksAndNull, invalidTablesInTheList, removeNotYetCapturedCollectionFromInProgressIncrementalSnapshot, removeStartedCapturedCollectionFromInProgressIncrementalSnapshot, returnedIdentifierName, sendAdHocKafkaSnapshotSignal, sendAdHocSnapshotSignal, sendAdHocSnapshotSignalAndWait, sendAdHocSnapshotStopSignal, sendAdHocSnapshotStopSignalAndWait, sendExecuteSnapshotKafkaSignal, sendKafkaSignal, sendPauseSignal, sendResumeSignal, shouldExecuteRegularSnapshotWhenAdditionalConditionEmpty, shouldSnapshotNewlyAddedTableToIncludeListAfterRestart, snapshotOnly, snapshotOnlyWithRestart, snapshotPreceededBySchemaChange, snapshotWithAdditionalCondition, snapshotWithAdditionalConditionWithRestart, snapshotWithAdditionalConditionWithSurrogateKey, snapshotWithDuplicateDataCollections, snapshotWithNewAdditionalConditionsField, snapshotWithRegexDataCollections, snapshotWithSurrogateKey, stopCurrentIncrementalSnapshotWithAllCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, stopCurrentIncrementalSnapshotWithoutCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, testNotification, testPauseDuringSnapshot, updatesLargeChunk, updatesWithRestartMethods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
alterTableAddColumnStatement, alterTableDropColumnStatement, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, database, getMaximumEnqueuedRecordCount, getRecordValue, pkFieldName, populate4PkTable, populateTable, populateTable, populateTable, populateTable, populateTables, populateTables, populateTableWithSpecificValue, sendAdHocSnapshotSignal, sendAdHocSnapshotSignalWithAdditionalConditionsWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionsWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, startConnector, startConnector, startConnector, startConnector, startConnectorWithSnapshot, task, valueFieldName, waitForCdcTransactionPropagation, waitForConnectorToStartMethods inherited from class io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
createEngine, createEngineBuilderMethods 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, consumeAvailableRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, storeOffsets, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, 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 classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
mutableConfig
protected Configuration.Builder mutableConfig(boolean signalTableOnly, boolean storeOnlyCapturedDdl) - Specified by:
mutableConfigin classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
connector
- Specified by:
connectorin classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
server
- Specified by:
serverin classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
connectorClass
- Specified by:
connectorClassin classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
databaseConnection
- Specified by:
databaseConnectionin classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
topicName
- Specified by:
topicNamein classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
topicNames
- Specified by:
topicNamesin classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
tableName
- Specified by:
tableNamein classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
noPKTopicName
- Specified by:
noPKTopicNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
noPKTableName
- Specified by:
noPKTableNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
tableNames
- Specified by:
tableNamesin classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
signalTableName
- Specified by:
signalTableNamein classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
signalTableNameSanitized
- Overrides:
signalTableNameSanitizedin classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
tableName
- Specified by:
tableNamein classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
-
tableDataCollectionId
- Overrides:
tableDataCollectionIdin classAbstractSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
noPKTableDataCollectionId
- Overrides:
noPKTableDataCollectionIdin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
tableDataCollectionIds
- Overrides:
tableDataCollectionIdsin classAbstractSnapshotTest<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
-
incrementalSnapshotOnly
- Throws:
Exception
-