Package io.debezium.connector.mysql
Class ReadOnlyIncrementalSnapshotIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<T>
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.mysql.MySqlConnector>
io.debezium.connector.mysql.IncrementalSnapshotIT
io.debezium.connector.mysql.ReadOnlyIncrementalSnapshotIT
- All Implemented Interfaces:
Testing
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecordsNested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate static KafkaClusterprivate static final intorg.junit.rules.TestRuleFields inherited from class io.debezium.connector.mysql.IncrementalSnapshotIT
DATABASE, SERVER_NAMEFields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
DB_HISTORY_PATH, ROW_COUNTFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore()protected Configuration.Builderconfig()voidvoidprivate Stringvoidvoidprotected voidprotected voidprotected voidprotected voidsendExecuteSnapshotKafkaSignal(String fullTableNames) voidstatic voidstatic voidMethods inherited from class io.debezium.connector.mysql.IncrementalSnapshotIT
after, alterColumnDropDefaultStatement, alterColumnDropNotNullStatement, alterColumnSetDefaultStatement, alterColumnSetNotNullStatement, alterColumnStatement, connectorClass, createTableStatement, databaseConnection, executeRenameTable, mutableConfig, signalTableName, signalTableNameSanitized, tableDataCollectionId, tableDataCollectionIds, tableName, tableName, tableNames, tableWithDatetime, tableWithZeroDate, topicName, topicNames, updatesMethods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotWithSchemaChangesSupportTest
columnDefaultChanges, columnNullabilityChanges, renameTable, schemaChangesMethods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
alterTableAddColumnStatement, alterTableDropColumnStatement, consumeAnyRemainingIncrementalSnapshotEventsAndCheckForStopMessage, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, getMaximumEnqueuedRecordCount, getSignalTypeFieldName, inserts, invalidTablesInTheList, pkFieldName, populate4PkTable, populateTable, populateTable, populateTable, populateTables, populateTables, removeNotYetCapturedCollectionFromInProgressIncrementalSnapshot, removeStartedCapturedCollectionFromInProgressIncrementalSnapshot, sendAdHocSnapshotSignal, sendAdHocSnapshotSignal, sendAdHocSnapshotSignalAndWait, sendAdHocSnapshotStopSignal, sendAdHocSnapshotStopSignalAndWait, shouldSnapshotNewlyAddedTableToIncludeListAfterRestart, snapshotOnly, snapshotOnlyWithRestart, snapshotPreceededBySchemaChange, snapshotWithRegexDataCollections, startConnector, startConnector, startConnector, startConnector, startConnectorWithSnapshot, stopCurrentIncrementalSnapshotWithAllCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, stopCurrentIncrementalSnapshotWithoutCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, updatesLargeChunk, updatesWithRestart, valueFieldName, waitForConnectorToStartMethods inherited from class io.debezium.embedded.AbstractConnectorTest
assertBeginTransaction, assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEndTransaction, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertOnlyTransactionRecordsToConsume, assertRecordTransactionMetadata, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
kafka
-
PARTITION_NO
private static final int PARTITION_NO- See Also:
-
EXCLUDED_TABLE
- See Also:
-
skipTest
public org.junit.rules.TestRule skipTest
-
-
Constructor Details
-
ReadOnlyIncrementalSnapshotIT
public ReadOnlyIncrementalSnapshotIT()
-
-
Method Details
-
before
- Overrides:
beforein classIncrementalSnapshotIT- Throws:
SQLException
-
startKafka
- Throws:
Exception
-
stopKafka
public static void stopKafka() -
config
- Overrides:
configin classIncrementalSnapshotIT
-
getSignalsTopic
-
sendExecuteSnapshotKafkaSignal
-
sendExecuteSnapshotKafkaSignal
protected void sendExecuteSnapshotKafkaSignal(String fullTableNames) throws ExecutionException, InterruptedException -
emptyHighWatermark
- Throws:
Exception
-
filteredEvents
- Throws:
Exception
-
inserts4Pks
- Throws:
Exception
-
insertsWithoutPks
- Throws:
Exception
-
shouldFailIfGtidModeIsOff
- Throws:
Exception
-
populate4PkTable
- Throws:
SQLException
-
populate4WithoutPkTable
- Throws:
SQLException
-