Class SnapshotReaderIT


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

      • DB_HISTORY_PATH

        private static final Path DB_HISTORY_PATH
      • context

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

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

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

      • SnapshotReaderIT

        public SnapshotReaderIT()
    • Method Detail

      • beforeEach

        public void beforeEach()
      • afterEach

        public void afterEach()
      • 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
      • shouldCreateSnapshotSchemaOnly

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

        private long toMicroSeconds​(String duration)