Package io.debezium.connector.db2
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<io.debezium.connector.db2.Db2Connector>
io.debezium.connector.db2.IncrementalSnapshotIT
- All Implemented Interfaces:
io.debezium.util.Testing
public class IncrementalSnapshotIT
extends io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
io.debezium.embedded.AbstractConnectorTest.SourceRecordsNested classes/interfaces inherited from interface io.debezium.util.Testing
io.debezium.util.Testing.Debug, io.debezium.util.Testing.Files, io.debezium.util.Testing.InterruptableFunction, io.debezium.util.Testing.Network, io.debezium.util.Testing.Print, io.debezium.util.Testing.Timer -
Field Summary
FieldsModifier and TypeFieldDescriptionio.debezium.junit.ConditionalFailprivate io.debezium.connector.db2.Db2Connectionio.debezium.junit.SkipTestRuleFields 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_PATH, SERVER_NAMEFields 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()voidbefore()protected io.debezium.config.Configuration.Builderconfig()protected Stringprotected Class<io.debezium.connector.db2.Db2Connector>protected io.debezium.jdbc.JdbcConnectionprotected intprotected Stringprotected io.debezium.config.Configuration.BuildermutableConfig(boolean signalTableOnly, boolean storeOnlyCapturedDdl) protected Stringprotected Stringprotected Stringprotected voidpopulate4PkTable(io.debezium.jdbc.JdbcConnection connection, String tableName) protected voidprotected voidprotected StringreturnedIdentifierName(String queriedID) protected voidprotected Stringserver()protected Stringvoidvoidprotected Stringprotected Stringprotected StringMethods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
consumeAnyRemainingIncrementalSnapshotEventsAndCheckForStopMessage, getSignalsTopic, insertDeleteWatermarkingStrategy, insertInsertWatermarkingStrategy, inserts, insertsWithKafkaSnapshotSignal, insertsWithoutPks, insertsWithoutPksAndNull, invalidTablesInTheList, noPKTableDataCollectionId, removeNotYetCapturedCollectionFromInProgressIncrementalSnapshot, removeStartedCapturedCollectionFromInProgressIncrementalSnapshot, sendAdHocKafkaSnapshotSignal, sendAdHocSnapshotSignalAndWait, sendAdHocSnapshotStopSignal, sendAdHocSnapshotStopSignalAndWait, sendExecuteSnapshotKafkaSignal, sendKafkaSignal, sendPauseSignal, sendResumeSignal, shouldExecuteRegularSnapshotWhenAdditionalConditionEmpty, shouldSnapshotNewlyAddedTableToIncludeListAfterRestart, snapshotOnly, snapshotOnlyWithRestart, snapshotPreceededBySchemaChange, snapshotWithAdditionalConditionWithSurrogateKey, snapshotWithDuplicateDataCollections, snapshotWithNewAdditionalConditionsField, snapshotWithRegexDataCollections, snapshotWithSurrogateKey, stopCurrentIncrementalSnapshotWithAllCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, stopCurrentIncrementalSnapshotWithoutCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, testNotification, testPauseDuringSnapshot, updates, 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, populateTable, populateTable, populateTable, populateTables, populateTableWithSpecificValue, sendAdHocSnapshotSignal, sendAdHocSnapshotSignalWithAdditionalConditionsWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionsWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, signalTableNameSanitized, startConnector, startConnector, startConnector, startConnector, startConnectorWithSnapshot, tableDataCollectionId, tableDataCollectionIds, task, 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.util.Testing
once, once, resetBeforeEachTest, time, time
-
Field Details
-
connection
private io.debezium.connector.db2.Db2Connection connection -
skipRule
public io.debezium.junit.SkipTestRule skipRule -
conditionalFail
public io.debezium.junit.ConditionalFail conditionalFail
-
-
Constructor Details
-
IncrementalSnapshotIT
public IncrementalSnapshotIT()
-
-
Method Details
-
before
- Throws:
SQLException
-
after
- Throws:
SQLException
-
populateTable
- Overrides:
populateTablein classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>- Throws:
SQLException
-
populateTables
- Overrides:
populateTablesin classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>- Throws:
SQLException
-
populate4PkTable
protected void populate4PkTable(io.debezium.jdbc.JdbcConnection connection, String tableName) throws SQLException - Overrides:
populate4PkTablein classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>- Throws:
SQLException
-
connectorClass
- Specified by:
connectorClassin classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
databaseConnection
protected io.debezium.jdbc.JdbcConnection databaseConnection()- Specified by:
databaseConnectionin classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
topicName
- Specified by:
topicNamein classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
topicNames
- Specified by:
topicNamesin classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
noPKTopicName
- Specified by:
noPKTopicNamein classio.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
tableName
- Specified by:
tableNamein classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
tableNames
- Specified by:
tableNamesin classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
noPKTableName
- Specified by:
noPKTableNamein classio.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
signalTableName
- Specified by:
signalTableNamein classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
getSignalTypeFieldName
- Overrides:
getSignalTypeFieldNamein classio.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
returnedIdentifierName
- Overrides:
returnedIdentifierNamein classio.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
sendAdHocSnapshotSignal
- Overrides:
sendAdHocSnapshotSignalin classio.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>- Throws:
SQLException
-
config
protected io.debezium.config.Configuration.Builder config()- Specified by:
configin classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
mutableConfig
protected io.debezium.config.Configuration.Builder mutableConfig(boolean signalTableOnly, boolean storeOnlyCapturedDdl) - Specified by:
mutableConfigin classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
pkFieldName
- Overrides:
pkFieldNamein classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
valueFieldName
- Overrides:
valueFieldNamein classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
defaultIncrementalSnapshotChunkSize
protected int defaultIncrementalSnapshotChunkSize()- Overrides:
defaultIncrementalSnapshotChunkSizein classio.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
connector
- Specified by:
connectorin classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
server
- Specified by:
serverin classio.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
-
snapshotWithAdditionalConditionWithRestart
- Overrides:
snapshotWithAdditionalConditionWithRestartin classio.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>- Throws:
Exception
-
snapshotWithAdditionalCondition
- Overrides:
snapshotWithAdditionalConditionin classio.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>- Throws:
Exception
-