public class SnapshotReaderIT extends Object
| Modifier and Type | Field and Description |
|---|---|
private CountDownLatch |
completed |
private Configuration |
config |
private io.debezium.connector.mysql.legacy.MySqlTaskContext |
context |
private UniqueDatabase |
DATABASE |
private static Path |
DB_HISTORY_PATH |
private Function<org.apache.kafka.connect.source.SourceRecord,String> |
getTableNameFromSourceRecord |
private UniqueDatabase |
OTHER_DATABASE |
private io.debezium.connector.mysql.legacy.SnapshotReader |
reader |
SkipTestRule |
skipRule |
| Constructor and Description |
|---|
SnapshotReaderIT() |
private static final Path DB_HISTORY_PATH
private final UniqueDatabase DATABASE
private final UniqueDatabase OTHER_DATABASE
private Configuration config
private io.debezium.connector.mysql.legacy.MySqlTaskContext context
private io.debezium.connector.mysql.legacy.SnapshotReader reader
private CountDownLatch completed
public SkipTestRule skipRule
public void beforeEach()
public void afterEach()
protected Configuration.Builder simpleConfig()
public void shouldCreateSnapshotOfSingleDatabase()
throws Exception
Exceptionpublic void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLock()
throws Exception
Exceptionpublic void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyMonitoredTables()
throws Exception
Exceptionprivate void snapshotOfSingleDatabase(boolean useGlobalLock,
boolean storeOnlyMonitoredTables)
throws Exception
Exceptionpublic void snapshotWithBackupLocksShouldNotWaitForReads()
throws Exception
Exception@FixFor(value="DBZ-2456") public void shouldCreateSnapshotSelectively() throws Exception
Exceptionprivate String productsTableName()
public void shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges()
throws Exception
Exceptionpublic void shouldCreateSnapshotSchemaOnlyRecovery_exception()
throws Exception
Exceptionpublic void shouldCreateSnapshotSchemaOnlyRecovery()
throws Exception
Exceptionpublic void shouldSnapshotTablesInOrderSpecifiedInTableIncludeList()
throws Exception
Exceptionpublic void shouldSnapshotTablesInOrderSpecifiedInTablesWhitelist()
throws Exception
Exceptionpublic void shouldSnapshotTablesInLexicographicalOrder()
throws Exception
Exceptionprivate LinkedHashSet<String> getTableNamesInSpecifiedOrder(String... tables)
public void shouldCreateSnapshotSchemaOnly()
throws Exception
Exceptionprivate long toMicroSeconds(String duration)
Copyright © 2021 JBoss by Red Hat. All rights reserved.