Class BinlogReaderIT
java.lang.Object
io.debezium.connector.mysql.legacy.BinlogReaderIT
- Author:
- Randall Hauch
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Configurationprivate io.debezium.connector.mysql.legacy.MySqlTaskContextprivate final UniqueDatabaseprivate static final Pathprivate io.debezium.connector.mysql.legacy.BinlogReaderprivate SchemaChangeHistoryprivate static final Stringprivate KeyValueStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected intconsumeAtLeast(int minNumber) protected intconsumeAtLeast(int minNumber, long timeout, TimeUnit unit) protected longfilterAtLeast(int minNumber, long timeout, TimeUnit unit) private voidprivate StringvoidvoidvoidvoidvoidvoidSetup a DATABASE_INCLUDE_LIST filter that filters all events.voidSetup a DATABASE_WHITELIST filter that filters all events.voidvoidvoidvoidprotected Configuration.Builderprivate DurationtoDuration(String duration)
-
Field Details
-
DB_HISTORY_PATH
-
DATABASE
-
SET_TLS_PROTOCOLS
- See Also:
-
config
-
context
private io.debezium.connector.mysql.legacy.MySqlTaskContext context -
reader
private io.debezium.connector.mysql.legacy.BinlogReader reader -
store
-
schemaChanges
-
skipRule
-
-
Constructor Details
-
BinlogReaderIT
public BinlogReaderIT()
-
-
Method Details
-
beforeEach
public void beforeEach() -
afterEach
public void afterEach() -
consumeAtLeast
- 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
-
shouldCreateSnapshotOfSingleDatabase
- Throws:
Exception
-
shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges
- Throws:
Exception
-
shouldFilterAllRecordsBasedOnDatabaseWhitelistFilter
@FixFor("DBZ-1206") public void shouldFilterAllRecordsBasedOnDatabaseWhitelistFilter() throws ExceptionSetup 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 ExceptionSetup a DATABASE_INCLUDE_LIST filter that filters all events. Verify all events are properly filtered. Verify numberOfFilteredEvents metric is incremented correctly.- Throws:
Exception
-
shouldHandleTimestampTimezones
- Throws:
Exception
-
shouldHandleMySQLTimeCorrectly
- Throws:
Exception
-
shouldFailOnSchemaInconsistency
- Throws:
Exception
-
shouldWarnOnSchemaInconsistency
- Throws:
Exception
-
shouldIgnoreOnSchemaInconsistency
- Throws:
Exception
-
shouldFailOnUnknownTlsProtocol
-
shouldAcceptTls12
-
inconsistentSchema
private void inconsistentSchema(CommonConnectorConfig.EventProcessingFailureHandlingMode mode) throws InterruptedException, SQLException - Throws:
InterruptedExceptionSQLException
-
toDuration
-
productsTableName
-