public class BinlogReaderIT extends Object
| Modifier and Type | Field and Description |
|---|---|
private Configuration |
config |
private io.debezium.connector.mysql.MySqlTaskContext |
context |
private UniqueDatabase |
DATABASE |
private static Path |
DB_HISTORY_PATH |
private io.debezium.connector.mysql.BinlogReader |
reader |
private SchemaChangeHistory |
schemaChanges |
private KeyValueStore |
store |
| Constructor and Description |
|---|
BinlogReaderIT() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterEach() |
void |
beforeEach() |
protected int |
consumeAtLeast(int minNumber) |
protected int |
consumeAtLeast(int minNumber,
long timeout,
TimeUnit unit) |
private void |
inconsistentSchema(io.debezium.connector.mysql.MySqlConnectorConfig.EventProcessingFailureHandlingMode mode) |
private String |
productsTableName() |
void |
shouldCreateSnapshotOfSingleDatabase() |
void |
shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges() |
void |
shouldFailOnSchemaInconsistency() |
void |
shouldHandleMySQLTimeCorrectly() |
void |
shouldHandleTimestampTimezones() |
void |
shouldIgnoreOnSchemaInconsistency() |
void |
shouldWarnOnSchemaInconsistency() |
protected Configuration.Builder |
simpleConfig() |
private Duration |
toDuration(String duration) |
private static final Path DB_HISTORY_PATH
private final UniqueDatabase DATABASE
private Configuration config
private io.debezium.connector.mysql.MySqlTaskContext context
private io.debezium.connector.mysql.BinlogReader reader
private KeyValueStore store
private SchemaChangeHistory schemaChanges
public void beforeEach()
public void afterEach()
protected int consumeAtLeast(int minNumber)
throws InterruptedException
InterruptedExceptionprotected int consumeAtLeast(int minNumber,
long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionprotected Configuration.Builder simpleConfig()
public void shouldCreateSnapshotOfSingleDatabase()
throws Exception
Exceptionpublic void shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges()
throws Exception
Exception@FixFor(value="DBZ-183") public void shouldHandleTimestampTimezones() throws Exception
Exception@FixFor(value="DBZ-342") public void shouldHandleMySQLTimeCorrectly() throws Exception
Exceptionpublic void shouldFailOnSchemaInconsistency()
throws Exception
Exceptionpublic void shouldWarnOnSchemaInconsistency()
throws Exception
Exceptionpublic void shouldIgnoreOnSchemaInconsistency()
throws Exception
Exceptionprivate void inconsistentSchema(io.debezium.connector.mysql.MySqlConnectorConfig.EventProcessingFailureHandlingMode mode)
throws InterruptedException,
SQLException
InterruptedExceptionSQLExceptionprivate String productsTableName()
Copyright © 2018 JBoss by Red Hat. All rights reserved.