Package io.debezium.connector.binlog
Class BinlogIncrementalSnapshotIT<C extends org.apache.kafka.connect.source.SourceConnector>
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<C>
io.debezium.connector.binlog.BinlogIncrementalSnapshotIT<C>
- All Implemented Interfaces:
BinlogConnectorTest<C>,Testing
- Direct Known Subclasses:
BinlogReadOnlyIncrementalSnapshotIT
public abstract class BinlogIncrementalSnapshotIT<C extends org.apache.kafka.connect.source.SourceConnector>
extends AbstractIncrementalSnapshotWithSchemaChangesSupportTest<C>
implements BinlogConnectorTest<C>
-
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 StringcreateTableStatement(String newTable, String copyTable) protected JdbcConnectionprivate StringdataCollectionName(String table) protected voidexecuteRenameTable(JdbcConnection connection, String newTable) protected abstract Class<?>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, updatesWithRestart, whenSnapshotMultipleTablesAndConnectorRestartsThenOnlyNotAlreadyProcessedTableMustBeProcessedMethods 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, waitTimeForRecordsAfterNullsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.connector.binlog.BinlogConnectorTest
getConnectorClass, getConnectorName, getTestDatabaseConnection, getTestDatabaseConnection, getTestReplicaDatabaseConnection, isMariaDb
-
Field Details
-
SERVER_NAME
- See Also:
-
DATABASE
-
-
Constructor Details
-
BinlogIncrementalSnapshotIT
public BinlogIncrementalSnapshotIT()
-
-
Method Details
-
before
- Throws:
SQLException
-
after
public void after() -
connectorClass
- Specified by:
connectorClassin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
databaseConnection
- Specified by:
databaseConnectionin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
connector
- Specified by:
connectorin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
getFieldReader
-
config
- Specified by:
configin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
mutableConfig
protected Configuration.Builder mutableConfig(boolean signalTableOnly, boolean storeOnlyCapturedDdl) - Specified by:
mutableConfigin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
server
- Specified by:
serverin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
topicName
- Specified by:
topicNamein classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
topicNames
- Specified by:
topicNamesin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
tableName
- Specified by:
tableNamein classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
noPKTopicName
- Specified by:
noPKTopicNamein classAbstractIncrementalSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
noPKTableName
- Specified by:
noPKTableNamein classAbstractIncrementalSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
tableNames
- Specified by:
tableNamesin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
signalTableName
- Specified by:
signalTableNamein classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
signalTableNameSanitized
- Overrides:
signalTableNameSanitizedin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
tableName
- Specified by:
tableNamein classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
tableDataCollectionId
- Overrides:
tableDataCollectionIdin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
noPKTableDataCollectionId
- Overrides:
noPKTableDataCollectionIdin classAbstractIncrementalSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
tableDataCollectionIds
- Overrides:
tableDataCollectionIdsin classAbstractSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
dataCollectionName
-
tableNameId
-
tableNameId
-
alterColumnStatement
- Specified by:
alterColumnStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
alterColumnSetNotNullStatement
- Specified by:
alterColumnSetNotNullStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
alterColumnDropNotNullStatement
- Specified by:
alterColumnDropNotNullStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
alterColumnSetDefaultStatement
protected String alterColumnSetDefaultStatement(String table, String column, String type, String defaultValue) - Specified by:
alterColumnSetDefaultStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
alterColumnDropDefaultStatement
- Specified by:
alterColumnDropDefaultStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
executeRenameTable
- Specified by:
executeRenameTablein classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
SQLException
-
createTableStatement
- Specified by:
createTableStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
updates
- Overrides:
updatesin classAbstractIncrementalSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
Exception
-
tableWithDatetime
- Throws:
Exception
-
tableWithZeroDate
- Throws:
Exception
-
incrementalSnapshotOnly
- Throws:
Exception
-