Package io.debezium.connector.mysql
Class ReadOnlyIncrementalSnapshotIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<io.debezium.connector.mysql.MySqlConnector>
-
- io.debezium.connector.mysql.IncrementalSnapshotIT
-
- io.debezium.connector.mysql.ReadOnlyIncrementalSnapshotIT
-
- All Implemented Interfaces:
Testing
public class ReadOnlyIncrementalSnapshotIT extends IncrementalSnapshotIT
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecords
-
Nested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCLUDED_TABLEprivate static KafkaClusterkafkaprivate static intPARTITION_NOorg.junit.rules.TestRuleskipTest-
Fields inherited from class io.debezium.connector.mysql.IncrementalSnapshotIT
DATABASE, SERVER_NAME
-
Fields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
DB_HISTORY_PATH, ROW_COUNT
-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyIncrementalSnapshotIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbefore()protected Configuration.Builderconfig()voidemptyHighWatermark()voidfilteredEvents()private StringgetSignalsTopic()protected voidsendExecuteSnapshotKafkaSignal()voidshouldFailIfGtidModeIsOff()static voidstartKafka()static voidstopKafka()-
Methods inherited from class io.debezium.connector.mysql.IncrementalSnapshotIT
after, connectorClass, databaseConnection, signalTableName, tableName, topicName
-
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, getMaximumEnqueuedRecordCount, inserts, invalidTablesInTheList, pkFieldName, populateTable, populateTable, sendAdHocSnapshotSignal, sendAdHocSnapshotSignal, snapshotOnly, snapshotOnlyWithRestart, startConnector, startConnector, startConnector, startConnector, tableDataCollectionId, updates, updatesLargeChunk, updatesWithRestart, valueFieldName, waitForConnectorToStart
-
Methods 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, debug, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Field Detail
-
kafka
private static KafkaCluster kafka
-
PARTITION_NO
private static final int PARTITION_NO
- See Also:
- Constant Field Values
-
EXCLUDED_TABLE
public static final String EXCLUDED_TABLE
- See Also:
- Constant Field Values
-
skipTest
public org.junit.rules.TestRule skipTest
-
-
Method Detail
-
before
public void before() throws SQLException- Overrides:
beforein classIncrementalSnapshotIT- Throws:
SQLException
-
stopKafka
public static void stopKafka()
-
config
protected Configuration.Builder config()
- Overrides:
configin classIncrementalSnapshotIT
-
getSignalsTopic
private String getSignalsTopic()
-
sendExecuteSnapshotKafkaSignal
protected void sendExecuteSnapshotKafkaSignal() throws ExecutionException, InterruptedException
-
-