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 intprivate final Pathorg.junit.rules.TestRuleFields inherited from class io.debezium.connector.mysql.IncrementalSnapshotIT
DATABASE, SERVER_NAMEFields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
ROW_COUNT, SCHEMA_HISTORY_PATHFields 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()voidvoidprotected Stringvoidvoidvoidprotected voidprotected voidprivate voidsendExecuteSnapshotFileSignal(String fullTableNames) protected voidprotected voidsendExecuteSnapshotKafkaSignal(String fullTableNames) protected voidsendKafkaSignal(String signalValue) protected voidprotected voidprotected voidprotected voidsendStopSnapshotKafkaSignal(String fullTableNames) voidstatic voidstatic voidvoidvoidMethods inherited from class io.debezium.connector.mysql.IncrementalSnapshotIT
after, alterColumnDropDefaultStatement, alterColumnDropNotNullStatement, alterColumnSetDefaultStatement, alterColumnSetNotNullStatement, alterColumnStatement, connectorClass, createTableStatement, databaseConnection, executeRenameTable, incrementalSnapshotOnly, 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, defaultIncrementalSnapshotChunkSize, getMaximumEnqueuedRecordCount, getSignalTypeFieldName, inserts, insertsWithKafkaSnapshotSignal, invalidTablesInTheList, pkFieldName, populate4PkTable, populateTable, populateTable, populateTable, populateTables, populateTables, populateTableWithSpecificValue, removeNotYetCapturedCollectionFromInProgressIncrementalSnapshot, removeStartedCapturedCollectionFromInProgressIncrementalSnapshot, sendAdHocKafkaSnapshotSignal, sendAdHocSnapshotSignal, sendAdHocSnapshotSignal, sendAdHocSnapshotSignalAndWait, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, sendAdHocSnapshotStopSignal, sendAdHocSnapshotStopSignalAndWait, sendPauseSignal, sendResumeSignal, shouldExecuteRegularSnapshotWhenAdditionalConditionEmpty, shouldSnapshotNewlyAddedTableToIncludeListAfterRestart, snapshotOnly, snapshotOnlyWithRestart, snapshotPreceededBySchemaChange, snapshotWithAdditionalCondition, snapshotWithAdditionalConditionWithRestart, snapshotWithAdditionalConditionWithSurrogateKey, snapshotWithRegexDataCollections, snapshotWithSurrogateKey, startConnector, startConnector, startConnector, startConnector, startConnectorWithSnapshot, stopCurrentIncrementalSnapshotWithAllCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, stopCurrentIncrementalSnapshotWithoutCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, testNotification, testPauseDuringSnapshot, updatesLargeChunk, updatesWithRestart, valueFieldName, waitForCdcTransactionPropagation, 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, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getSnapshotMetricsObjectName, 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, waitForNotInitialState, waitForSnapshotToBeCompleted, 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 -
signalsFile
-
-
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
- Overrides:
getSignalsTopicin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
sendExecuteSnapshotKafkaSignal
-
sendExecuteSnapshotKafkaSignal
protected void sendExecuteSnapshotKafkaSignal(String fullTableNames) throws ExecutionException, InterruptedException - Overrides:
sendExecuteSnapshotKafkaSignalin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>- Throws:
ExecutionExceptionInterruptedException
-
sendStopSnapshotKafkaSignal
-
sendStopSnapshotKafkaSignal
protected void sendStopSnapshotKafkaSignal(String fullTableNames) throws ExecutionException, InterruptedException -
sendPauseSnapshotKafkaSignal
-
sendResumeSnapshotKafkaSignal
-
sendKafkaSignal
- Overrides:
sendKafkaSignalin classAbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>- Throws:
ExecutionExceptionInterruptedException
-
emptyHighWatermark
- Throws:
Exception
-
filteredEvents
- Throws:
Exception
-
inserts4Pks
- Throws:
Exception
-
inserts4PksWithSignalFile
- Throws:
Exception
-
insertsWithoutPks
- Throws:
Exception
-
shouldFailIfGtidModeIsOff
- Throws:
Exception
-
testStopSnapshotKafkaSignal
- Throws:
Exception
-
testPauseDuringSnapshotKafkaSignal
- Throws:
Exception
-
sendExecuteSnapshotFileSignal
- Throws:
IOException
-
populate4PkTable
- Throws:
SQLException
-
populate4WithoutPkTable
- Throws:
SQLException
-