Class SnapshotSourceIT

    • Field Detail

      • DB_HISTORY_PATH

        private static final Path DB_HISTORY_PATH
      • getTableNameFromSourceRecord

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

      • SnapshotSourceIT

        public SnapshotSourceIT()
    • 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
      • shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyMonitoredTables

        public void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyMonitoredTables()
                                                                                              throws Exception
        Throws:
        Exception
      • shouldCreateSnapshotOfSingleDatabaseNoData

        public void shouldCreateSnapshotOfSingleDatabaseNoData()
                                                        throws Exception
        Throws:
        Exception
      • shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockNoData

        public void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockNoData()
                                                                         throws Exception
        Throws:
        Exception
      • shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyMonitoredTablesNoData

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

        private void snapshotOfSingleDatabase​(boolean useGlobalLock,
                                              boolean storeOnlyMonitoredTables,
                                              boolean data)
                                       throws Exception
        Throws:
        Exception
      • snapshotWithBackupLocksShouldNotWaitForReads

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

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

        public void shouldCreateSnapshotOfSingleDatabaseUsingInsertEvents()
                                                                   throws Exception
        Throws:
        Exception
      • 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)