Class SnapshotReaderIT
- java.lang.Object
-
- io.debezium.connector.mysql.legacy.SnapshotReaderIT
-
public class SnapshotReaderIT extends Object
- Author:
- Randall Hauch
-
-
Field Summary
Fields Modifier and Type Field Description private CountDownLatchcompletedprivate Configurationconfigprivate io.debezium.connector.mysql.legacy.MySqlTaskContextcontextprivate UniqueDatabaseDATABASEprivate static PathDB_HISTORY_PATHprivate Function<org.apache.kafka.connect.source.SourceRecord,String>getTableNameFromSourceRecordprivate UniqueDatabaseOTHER_DATABASEprivate io.debezium.connector.mysql.legacy.SnapshotReaderreaderSkipTestRuleskipRule
-
Constructor Summary
Constructors Constructor Description SnapshotReaderIT()
-
Method Summary
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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
-
shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyMonitoredTables
public void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyMonitoredTables() throws Exception- Throws:
Exception
-
snapshotOfSingleDatabase
private void snapshotOfSingleDatabase(boolean useGlobalLock, boolean storeOnlyMonitoredTables) 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)
-
-