Class SnapshotReaderIT

java.lang.Object
io.debezium.connector.mysql.legacy.SnapshotReaderIT

public class SnapshotReaderIT extends Object
Author:
Randall Hauch
  • Field Details

    • DB_HISTORY_PATH

      private static final Path DB_HISTORY_PATH
    • DATABASE

      private final UniqueDatabase DATABASE
    • OTHER_DATABASE

      private final UniqueDatabase OTHER_DATABASE
    • config

      private Configuration config
    • context

      private io.debezium.connector.mysql.legacy.MySqlTaskContext context
    • reader

      private io.debezium.connector.mysql.legacy.SnapshotReader reader
    • completed

      private CountDownLatch completed
    • skipRule

      public SkipTestRule skipRule
    • getTableNameFromSourceRecord

      private final Function<org.apache.kafka.connect.source.SourceRecord,String> getTableNameFromSourceRecord
  • Constructor Details

    • SnapshotReaderIT

      public SnapshotReaderIT()
  • Method Details

    • beforeEach

      public void beforeEach()
    • afterEach

      public void afterEach()
    • simpleConfig

      protected Configuration.Builder simpleConfig()
    • shouldCreateSnapshotOfSingleDatabase

      public void shouldCreateSnapshotOfSingleDatabase() throws Exception
      Throws:
      Exception
    • shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLock

      public void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLock() throws Exception
      Throws:
      Exception
    • shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyCapturedTables

      public void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyCapturedTables() throws Exception
      Throws:
      Exception
    • snapshotOfSingleDatabase

      private void snapshotOfSingleDatabase(boolean useGlobalLock, boolean storeOnlyCapturedTables) throws Exception
      Throws:
      Exception
    • snapshotWithBackupLocksShouldNotWaitForReads

      public void snapshotWithBackupLocksShouldNotWaitForReads() throws Exception
      Throws:
      Exception
    • shouldCreateSnapshotSelectively

      @FixFor("DBZ-2456") public void shouldCreateSnapshotSelectively() throws Exception
      Throws:
      Exception
    • productsTableName

      private String productsTableName()
    • shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges

      public void shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges() throws Exception
      Throws:
      Exception
    • shouldCreateSnapshotSchemaOnlyRecovery_exception

      public void shouldCreateSnapshotSchemaOnlyRecovery_exception() throws Exception
      Throws:
      Exception
    • shouldCreateSnapshotSchemaOnlyRecovery

      public void shouldCreateSnapshotSchemaOnlyRecovery() throws Exception
      Throws:
      Exception
    • shouldSnapshotTablesInOrderSpecifiedInTableIncludeList

      public void shouldSnapshotTablesInOrderSpecifiedInTableIncludeList() throws Exception
      Throws:
      Exception
    • shouldSnapshotTablesInOrderSpecifiedInTablesWhitelist

      public void shouldSnapshotTablesInOrderSpecifiedInTablesWhitelist() throws Exception
      Throws:
      Exception
    • shouldSnapshotTablesInLexicographicalOrder

      public void shouldSnapshotTablesInLexicographicalOrder() throws Exception
      Throws:
      Exception
    • getTableNamesInSpecifiedOrder

      private LinkedHashSet<String> getTableNamesInSpecifiedOrder(String... tables)
    • shouldCreateSnapshotSchemaOnly

      public void shouldCreateSnapshotSchemaOnly() throws Exception
      Throws:
      Exception
    • toMicroSeconds

      private long toMicroSeconds(String duration)