Class BinlogReaderIT
- java.lang.Object
-
- io.debezium.connector.mysql.legacy.BinlogReaderIT
-
public class BinlogReaderIT extends Object
- Author:
- Randall Hauch
-
-
Field Summary
Fields Modifier and Type Field Description private Configurationconfigprivate io.debezium.connector.mysql.legacy.MySqlTaskContextcontextprivate UniqueDatabaseDATABASEprivate static PathDB_HISTORY_PATHprivate io.debezium.connector.mysql.legacy.BinlogReaderreaderprivate SchemaChangeHistoryschemaChangesprivate static StringSET_TLS_PROTOCOLSSkipTestRuleskipRuleprivate KeyValueStorestore
-
Constructor Summary
Constructors Constructor Description BinlogReaderIT()
-
Method Summary
-
-
-
Field Detail
-
DB_HISTORY_PATH
private static final Path DB_HISTORY_PATH
-
DATABASE
private final UniqueDatabase DATABASE
-
SET_TLS_PROTOCOLS
private static final String SET_TLS_PROTOCOLS
- See Also:
- Constant Field Values
-
config
private Configuration config
-
context
private io.debezium.connector.mysql.legacy.MySqlTaskContext context
-
reader
private io.debezium.connector.mysql.legacy.BinlogReader reader
-
store
private KeyValueStore store
-
schemaChanges
private SchemaChangeHistory schemaChanges
-
skipRule
public SkipTestRule skipRule
-
-
Method Detail
-
beforeEach
public void beforeEach()
-
afterEach
public void afterEach()
-
consumeAtLeast
protected int consumeAtLeast(int minNumber) throws InterruptedException- Throws:
InterruptedException
-
consumeAtLeast
protected int consumeAtLeast(int minNumber, long timeout, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
filterAtLeast
protected long filterAtLeast(int minNumber, long timeout, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
simpleConfig
protected Configuration.Builder simpleConfig()
-
shouldCreateSnapshotOfSingleDatabase
public void shouldCreateSnapshotOfSingleDatabase() throws Exception- Throws:
Exception
-
shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges
public void shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges() throws Exception- Throws:
Exception
-
shouldFilterAllRecordsBasedOnDatabaseWhitelistFilter
@FixFor("DBZ-1206") public void shouldFilterAllRecordsBasedOnDatabaseWhitelistFilter() throws Exception
Setup a DATABASE_WHITELIST filter that filters all events. Verify all events are properly filtered. Verify numberOfFilteredEvents metric is incremented correctly.- Throws:
Exception
-
shouldFilterAllRecordsBasedOnDatabaseIncludeListFilter
@FixFor("DBZ-1206") public void shouldFilterAllRecordsBasedOnDatabaseIncludeListFilter() throws Exception
Setup a DATABASE_INCLUDE_LIST filter that filters all events. Verify all events are properly filtered. Verify numberOfFilteredEvents metric is incremented correctly.- Throws:
Exception
-
shouldHandleTimestampTimezones
@FixFor("DBZ-183") public void shouldHandleTimestampTimezones() throws Exception
- Throws:
Exception
-
shouldHandleMySQLTimeCorrectly
@FixFor("DBZ-342") public void shouldHandleMySQLTimeCorrectly() throws Exception
- Throws:
Exception
-
shouldFailOnSchemaInconsistency
public void shouldFailOnSchemaInconsistency() throws Exception- Throws:
Exception
-
shouldWarnOnSchemaInconsistency
public void shouldWarnOnSchemaInconsistency() throws Exception- Throws:
Exception
-
shouldIgnoreOnSchemaInconsistency
public void shouldIgnoreOnSchemaInconsistency() throws Exception- Throws:
Exception
-
shouldFailOnUnknownTlsProtocol
@FixFor("DBZ-1208") public void shouldFailOnUnknownTlsProtocol()
-
shouldAcceptTls12
@FixFor("DBZ-1208") public void shouldAcceptTls12()
-
inconsistentSchema
private void inconsistentSchema(CommonConnectorConfig.EventProcessingFailureHandlingMode mode) throws InterruptedException, SQLException
- Throws:
InterruptedExceptionSQLException
-
productsTableName
private String productsTableName()
-
-