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.SourceRecords

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    io.debezium.junit.ConditionalFail
     
    private io.debezium.connector.db2.Db2Connection
     
    io.debezium.junit.SkipTestRule
     

    Fields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest

    kafka

    Fields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest

    PARTITION_NO, ROW_COUNT, SCHEMA_HISTORY_PATH, SERVER_NAME, signalsFile

    Fields inherited from class io.debezium.embedded.AbstractConnectorTest

    consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    protected io.debezium.config.Configuration.Builder
     
    protected String
     
    protected Class<io.debezium.connector.db2.Db2Connector>
     
    protected io.debezium.jdbc.JdbcConnection
     
    protected int
     
    protected String
     
    protected io.debezium.config.Configuration.Builder
    mutableConfig(boolean signalTableOnly, boolean storeOnlyCapturedDdl)
     
    protected String
     
    protected String
     
    protected String
     
    protected void
    populate4PkTable(io.debezium.jdbc.JdbcConnection connection, String tableName)
     
    protected void
     
    protected void
     
    protected String
     
    protected void
     
    protected String
     
    protected String
     
    void
     
    void
     
    protected String
     
    protected List<String>
     
    protected String
     
    protected List<String>
     
    protected String
     

    Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest

    additionalConfiguration, consumeAnyRemainingIncrementalSnapshotEventsAndCheckForStopMessage, executeSignalWaiter, 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, stopSignalWaiter, testNotification, testPauseDuringSnapshot, updates, updatesLargeChunk, updatesWithRestart, whenSnapshotMultipleTablesAndConnectorRestartsThenOnlyNotAlreadyProcessedTableMustBeProcessed

    Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest

    alterTableAddColumnStatement, alterTableDropColumnStatement, buildAdditionalConditions, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, database, getMaximumEnqueuedRecordCount, getRecordValue, populateTable, populateTable, populateTable, populateTables, populateTableWithSpecificValue, sendAdHocSnapshotSignal, sendAdHocSnapshotSignalWithAdditionalConditionsWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionsWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, sendExecuteSnapshotFileSignal, sendExecuteSnapshotFileSignal, signalTableNameSanitized, startConnector, startConnector, startConnector, startConnector, startConnectorWithSnapshot, tableDataCollectionId, tableDataCollectionIds, task, waitForCdcTransactionPropagation, waitForConnectorToStart

    Methods inherited from class io.debezium.embedded.async.AbstractAsyncEngineConnectorTest

    createEngine, createEngineBuilder

    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, 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, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, waitTimeForRecords, waitTimeForRecordsAfterNulls

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public void before() throws SQLException
      Throws:
      SQLException
    • after

      public void after() throws SQLException
      Throws:
      SQLException
    • populateTable

      protected void populateTable() throws SQLException
      Overrides:
      populateTable in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      SQLException
    • populateTables

      protected void populateTables() throws SQLException
      Overrides:
      populateTables in class io.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:
      populate4PkTable in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      SQLException
    • connectorClass

      protected Class<io.debezium.connector.db2.Db2Connector> connectorClass()
      Specified by:
      connectorClass in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • databaseConnection

      protected io.debezium.jdbc.JdbcConnection databaseConnection()
      Specified by:
      databaseConnection in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • topicName

      protected String topicName()
      Specified by:
      topicName in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • topicNames

      protected List<String> topicNames()
      Specified by:
      topicNames in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • noPKTopicName

      protected String noPKTopicName()
      Specified by:
      noPKTopicName in class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • tableName

      protected String tableName()
      Specified by:
      tableName in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • tableNames

      protected List<String> tableNames()
      Specified by:
      tableNames in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • noPKTableName

      protected String noPKTableName()
      Specified by:
      noPKTableName in class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • signalTableName

      protected String signalTableName()
      Specified by:
      signalTableName in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • getSignalTypeFieldName

      protected String getSignalTypeFieldName()
      Overrides:
      getSignalTypeFieldName in class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • returnedIdentifierName

      protected String returnedIdentifierName(String queriedID)
      Overrides:
      returnedIdentifierName in class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • sendAdHocSnapshotSignal

      protected void sendAdHocSnapshotSignal() throws SQLException
      Overrides:
      sendAdHocSnapshotSignal in class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      SQLException
    • config

      protected io.debezium.config.Configuration.Builder config()
      Specified by:
      config in class io.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:
      mutableConfig in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • pkFieldName

      protected String pkFieldName()
      Overrides:
      pkFieldName in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • valueFieldName

      protected String valueFieldName()
      Overrides:
      valueFieldName in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • defaultIncrementalSnapshotChunkSize

      protected int defaultIncrementalSnapshotChunkSize()
      Overrides:
      defaultIncrementalSnapshotChunkSize in class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • connector

      protected String connector()
      Specified by:
      connector in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • server

      protected String server()
      Specified by:
      server in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<io.debezium.connector.db2.Db2Connector>
    • snapshotWithAdditionalConditionWithRestart

      public void snapshotWithAdditionalConditionWithRestart() throws Exception
      Overrides:
      snapshotWithAdditionalConditionWithRestart in class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      Exception
    • snapshotWithAdditionalCondition

      public void snapshotWithAdditionalCondition() throws Exception
      Overrides:
      snapshotWithAdditionalCondition in class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      Exception