Package io.debezium.connector.binlog
Class BinlogReadOnlyIncrementalSnapshotIT<C extends org.apache.kafka.connect.source.SourceConnector>
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest<T>
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<T>
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotWithSchemaChangesSupportTest<C>
io.debezium.connector.binlog.BinlogIncrementalSnapshotIT<C>
io.debezium.connector.binlog.BinlogReadOnlyIncrementalSnapshotIT<C>
- All Implemented Interfaces:
BinlogConnectorTest<C>,Testing
public abstract class BinlogReadOnlyIncrementalSnapshotIT<C extends org.apache.kafka.connect.source.SourceConnector>
extends BinlogIncrementalSnapshotIT<C>
-
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 intFields inherited from class io.debezium.connector.binlog.BinlogIncrementalSnapshotIT
DATABASE, SERVER_NAMEFields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
ROW_COUNT, SCHEMA_HISTORY_PATH, signalsFileFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbefore()protected Configuration.Builderconfig()voidvoidprotected Stringvoidvoidvoidvoidprotected voidprotected voidprotected voidsendExecuteSnapshotKafkaSignal(String fullTableNames) protected voidsendKafkaSignal(String signalValue) protected voidprotected voidprotected voidprotected voidsendStopSnapshotKafkaSignal(String fullTableNames) static voidstatic voidvoidvoidMethods inherited from class io.debezium.connector.binlog.BinlogIncrementalSnapshotIT
after, alterColumnDropDefaultStatement, alterColumnDropNotNullStatement, alterColumnSetDefaultStatement, alterColumnSetNotNullStatement, alterColumnStatement, connector, connectorClass, createTableStatement, databaseConnection, executeRenameTable, getFieldReader, incrementalSnapshotOnly, mutableConfig, noPKTableDataCollectionId, noPKTableName, noPKTopicName, server, 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
additionalConfiguration, consumeAnyRemainingIncrementalSnapshotEventsAndCheckForStopMessage, defaultIncrementalSnapshotChunkSize, executeSignalWaiter, getSignalTypeFieldName, inserts, insertsWithKafkaSnapshotSignal, insertsWithoutPks, insertsWithoutPksAndNull, invalidTablesInTheList, removeNotYetCapturedCollectionFromInProgressIncrementalSnapshot, removeStartedCapturedCollectionFromInProgressIncrementalSnapshot, returnedIdentifierName, sendAdHocKafkaSnapshotSignal, sendAdHocSnapshotSignal, sendAdHocSnapshotSignalAndWait, sendAdHocSnapshotStopSignal, sendAdHocSnapshotStopSignalAndWait, sendPauseSignal, sendResumeSignal, shouldExecuteRegularSnapshotWhenAdditionalConditionEmpty, shouldSnapshotNewlyAddedTableToIncludeListAfterRestart, snapshotOnly, snapshotOnlyWithRestart, snapshotPreceededBySchemaChange, snapshotWithAdditionalCondition, snapshotWithAdditionalConditionWithRestart, snapshotWithAdditionalConditionWithSurrogateKey, snapshotWithDuplicateDataCollections, snapshotWithNewAdditionalConditionsField, snapshotWithRegexDataCollections, snapshotWithSurrogateKey, stopCurrentIncrementalSnapshotWithAllCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, stopCurrentIncrementalSnapshotWithoutCollectionsAndTakeNewNewIncrementalSnapshotAfterRestart, stopSignalWaiter, testNotification, testPauseDuringSnapshot, updatesLargeChunk, updatesWithRestart, whenSnapshotMultipleTablesAndConnectorRestartsThenOnlyNotAlreadyProcessedTableMustBeProcessedMethods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
alterTableAddColumnStatement, alterTableDropColumnStatement, buildAdditionalConditions, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, database, getMaximumEnqueuedRecordCount, getRecordValue, pkFieldName, populate4PkTable, populateTable, populateTable, populateTable, populateTable, populateTables, populateTables, populateTableWithSpecificValue, sendAdHocSnapshotSignal, sendAdHocSnapshotSignalWithAdditionalConditionsWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionsWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, sendExecuteSnapshotFileSignal, sendExecuteSnapshotFileSignal, startConnector, startConnector, startConnector, startConnector, startConnectorWithSnapshot, task, valueFieldName, waitForCdcTransactionPropagation, waitForConnectorToStartMethods inherited from class io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
createEngine, createEngineBuilderMethods 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, consumeAvailableRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, storeOffsets, validate, waitForAvailableRecords, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, waitTimeForRecords, waitTimeForRecordsAfterNullsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.connector.binlog.BinlogConnectorTest
getConnectorClass, getConnectorName, getTestDatabaseConnection, getTestDatabaseConnection, getTestReplicaDatabaseConnection, isMariaDb
-
Field Details
-
kafka
-
PARTITION_NO
private static final int PARTITION_NO- See Also:
-
EXCLUDED_TABLE
- See Also:
-
conditionalFail
-
-
Constructor Details
-
BinlogReadOnlyIncrementalSnapshotIT
public BinlogReadOnlyIncrementalSnapshotIT()
-
-
Method Details
-
before
- Overrides:
beforein classBinlogIncrementalSnapshotIT<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
SQLException
-
startKafka
- Throws:
Exception
-
stopKafka
public static void stopKafka() -
config
- Overrides:
configin classBinlogIncrementalSnapshotIT<C extends org.apache.kafka.connect.source.SourceConnector>
-
getSignalsTopic
- Overrides:
getSignalsTopicin classAbstractIncrementalSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
sendExecuteSnapshotKafkaSignal
-
sendExecuteSnapshotKafkaSignal
protected void sendExecuteSnapshotKafkaSignal(String fullTableNames) throws ExecutionException, InterruptedException - Overrides:
sendExecuteSnapshotKafkaSignalin classAbstractIncrementalSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
ExecutionExceptionInterruptedException
-
sendStopSnapshotKafkaSignal
-
sendStopSnapshotKafkaSignal
protected void sendStopSnapshotKafkaSignal(String fullTableNames) throws ExecutionException, InterruptedException -
sendPauseSnapshotKafkaSignal
-
sendResumeSnapshotKafkaSignal
-
sendKafkaSignal
- Overrides:
sendKafkaSignalin classAbstractIncrementalSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
ExecutionExceptionInterruptedException
-
emptyHighWatermark
- Throws:
Exception
-
filteredEvents
- Throws:
Exception
-
inserts4Pks
- Throws:
Exception
-
inserts4PksWithSignalFile
- Throws:
Exception
-
aSignalAddedToFileWhenConnectorIsStoppedShouldBeProcessedWhenItStarts
@FixFor("DBZ-7441") public void aSignalAddedToFileWhenConnectorIsStoppedShouldBeProcessedWhenItStarts() throws Exception- Throws:
Exception
-
testStopSnapshotKafkaSignal
- Throws:
Exception
-
testPauseDuringSnapshotKafkaSignal
- Throws:
Exception
-
insertInsertWatermarkingStrategy
- Overrides:
insertInsertWatermarkingStrategyin classAbstractIncrementalSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
Exception
-
insertDeleteWatermarkingStrategy
- Overrides:
insertDeleteWatermarkingStrategyin classAbstractIncrementalSnapshotTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
Exception
-
populate4PkTable
- Throws:
SQLException
-