public class SnapshotReaderIT extends Object
| Modifier and Type | Field and Description |
|---|---|
private CountDownLatch |
completed |
private Configuration |
config |
private io.debezium.connector.mysql.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.SnapshotReader |
reader |
| Constructor and Description |
|---|
SnapshotReaderIT() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterEach() |
void |
beforeEach() |
private LinkedHashSet<String> |
getTableNamesInSpecifiedOrder(String... tables) |
private String |
productsTableName() |
void |
shouldCreateSnapshotOfSingleDatabase() |
void |
shouldCreateSnapshotOfSingleDatabaseUsingReadEvents() |
void |
shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLock() |
void |
shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyMonitoredTables() |
void |
shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges() |
void |
shouldCreateSnapshotSchemaOnly() |
void |
shouldCreateSnapshotSchemaOnlyRecovery_exception() |
void |
shouldCreateSnapshotSchemaOnlyRecovery() |
void |
shouldSnapshotTablesInLexicographicalOrder() |
void |
shouldSnapshotTablesInOrderSpecifiedInTablesWhitelist() |
protected Configuration.Builder |
simpleConfig() |
private void |
snapshotOfSingleDatabase(boolean useGlobalLock,
boolean storeOnlyMonitoredTables) |
private long |
toMicroSeconds(String duration) |
private static final Path DB_HISTORY_PATH
private final UniqueDatabase DATABASE
private final UniqueDatabase OTHER_DATABASE
private Configuration config
private io.debezium.connector.mysql.MySqlTaskContext context
private io.debezium.connector.mysql.SnapshotReader reader
private CountDownLatch completed
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 shouldCreateSnapshotOfSingleDatabaseUsingReadEvents()
throws Exception
Exceptionprivate String productsTableName()
public void shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges()
throws Exception
Exceptionpublic void shouldCreateSnapshotSchemaOnlyRecovery_exception()
throws Exception
Exceptionpublic void shouldCreateSnapshotSchemaOnlyRecovery()
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 © 2020 JBoss by Red Hat. All rights reserved.