Class AbstractIncrementalSnapshotTest<T extends org.apache.kafka.connect.source.SourceConnector>

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<T>
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<T>
All Implemented Interfaces:
Testing
Direct Known Subclasses:
AbstractIncrementalSnapshotWithSchemaChangesSupportTest

public abstract class AbstractIncrementalSnapshotTest<T extends org.apache.kafka.connect.source.SourceConnector> extends AbstractSnapshotTest<T>
  • Field Details

  • Constructor Details

    • AbstractIncrementalSnapshotTest

      public AbstractIncrementalSnapshotTest()
  • Method Details

    • getSignalTypeFieldName

      protected String getSignalTypeFieldName()
    • sendAdHocSnapshotStopSignal

      protected void sendAdHocSnapshotStopSignal(String... dataCollectionIds) throws SQLException
      Throws:
      SQLException
    • sendAdHocSnapshotSignal

      protected void sendAdHocSnapshotSignal() throws SQLException
      Throws:
      SQLException
    • sendAdHocKafkaSnapshotSignal

      protected void sendAdHocKafkaSnapshotSignal() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • sendExecuteSnapshotKafkaSignal

      protected void sendExecuteSnapshotKafkaSignal(String fullTableNames) throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • getSignalsTopic

      protected String getSignalsTopic()
    • sendKafkaSignal

      protected void sendKafkaSignal(String signalValue) throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • sendPauseSignal

      protected void sendPauseSignal()
    • sendResumeSignal

      protected void sendResumeSignal()
    • snapshotOnly

      public void snapshotOnly() throws Exception
      Throws:
      Exception
    • invalidTablesInTheList

      public void invalidTablesInTheList() throws Exception
      Throws:
      Exception
    • inserts

      public void inserts() throws Exception
      Throws:
      Exception
    • insertsWithKafkaSnapshotSignal

      public void insertsWithKafkaSnapshotSignal() throws Exception
      Throws:
      Exception
    • updates

      public void updates() throws Exception
      Throws:
      Exception
    • updatesWithRestart

      public void updatesWithRestart() throws Exception
      Throws:
      Exception
    • updatesLargeChunk

      public void updatesLargeChunk() throws Exception
      Throws:
      Exception
    • snapshotOnlyWithRestart

      public void snapshotOnlyWithRestart() throws Exception
      Throws:
      Exception
    • snapshotPreceededBySchemaChange

      @FixFor("DBZ-4272") public void snapshotPreceededBySchemaChange() throws Exception
      Throws:
      Exception
    • snapshotWithRegexDataCollections

      public void snapshotWithRegexDataCollections() throws Exception
      Throws:
      Exception
    • snapshotWithDuplicateDataCollections

      @FixFor("DBZ-6945") public void snapshotWithDuplicateDataCollections() throws Exception
      Throws:
      Exception
    • stopCurrentIncrementalSnapshotWithoutCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart

      @FixFor("DBZ-4271") public void stopCurrentIncrementalSnapshotWithoutCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart() throws Exception
      Throws:
      Exception
    • stopCurrentIncrementalSnapshotWithAllCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart

      @FixFor("DBZ-4271") public void stopCurrentIncrementalSnapshotWithAllCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart() throws Exception
      Throws:
      Exception
    • removeNotYetCapturedCollectionFromInProgressIncrementalSnapshot

      @FixFor("DBZ-4271") public void removeNotYetCapturedCollectionFromInProgressIncrementalSnapshot() throws Exception
      Throws:
      Exception
    • removeStartedCapturedCollectionFromInProgressIncrementalSnapshot

      @FixFor("DBZ-4271") public void removeStartedCapturedCollectionFromInProgressIncrementalSnapshot() throws Exception
      Throws:
      Exception
    • shouldSnapshotNewlyAddedTableToIncludeListAfterRestart

      @FixFor("DBZ-4834") public void shouldSnapshotNewlyAddedTableToIncludeListAfterRestart() throws Exception
      Throws:
      Exception
    • testPauseDuringSnapshot

      public void testPauseDuringSnapshot() throws Exception
      Throws:
      Exception
    • snapshotWithAdditionalCondition

      public void snapshotWithAdditionalCondition() throws Exception
      Throws:
      Exception
    • snapshotWithNewAdditionalConditionsField

      public void snapshotWithNewAdditionalConditionsField() throws Exception
      Throws:
      Exception
    • shouldExecuteRegularSnapshotWhenAdditionalConditionEmpty

      public void shouldExecuteRegularSnapshotWhenAdditionalConditionEmpty() throws Exception
      Throws:
      Exception
    • snapshotWithAdditionalConditionWithRestart

      public void snapshotWithAdditionalConditionWithRestart() throws Exception
      Throws:
      Exception
    • snapshotWithSurrogateKey

      public void snapshotWithSurrogateKey() throws Exception
      Throws:
      Exception
    • snapshotWithAdditionalConditionWithSurrogateKey

      public void snapshotWithAdditionalConditionWithSurrogateKey() throws Exception
      Throws:
      Exception
    • testNotification

      public void testNotification() throws Exception
      Throws:
      Exception
    • insertInsertWatermarkingStrategy

      public void insertInsertWatermarkingStrategy() throws Exception
      Throws:
      Exception
    • insertDeleteWatermarkingStrategy

      public void insertDeleteWatermarkingStrategy() throws Exception
      Throws:
      Exception
    • assertOpenCloseEventCount

      private void assertOpenCloseEventCount(JdbcConnection.ResultSetConsumer consumer) throws SQLException
      Throws:
      SQLException
    • defaultIncrementalSnapshotChunkSize

      protected int defaultIncrementalSnapshotChunkSize()
    • incrementalSnapshotCompleted

      private static BiPredicate<Integer,org.apache.kafka.connect.source.SourceRecord> incrementalSnapshotCompleted()
    • assertCorrectIncrementalSnapshotNotification

      private void assertCorrectIncrementalSnapshotNotification(List<org.apache.kafka.connect.source.SourceRecord> notifications)
    • sendAdHocSnapshotSignalAndWait

      protected void sendAdHocSnapshotSignalAndWait(String... collectionIds) throws Exception
      Throws:
      Exception
    • sendAdHocSnapshotStopSignalAndWait

      protected void sendAdHocSnapshotStopSignalAndWait(String... collectionIds) throws Exception
      Throws:
      Exception
    • consumeAnyRemainingIncrementalSnapshotEventsAndCheckForStopMessage

      protected boolean consumeAnyRemainingIncrementalSnapshotEventsAndCheckForStopMessage(LogInterceptor interceptor, String stopMessage) throws Exception
      Throws:
      Exception