Package io.debezium.connector.mysql
Class IncrementalSnapshotIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.mysql.IncrementalSnapshotIT
-
- All Implemented Interfaces:
Testing
public class IncrementalSnapshotIT extends AbstractConnectorTest
-
-
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 private UniqueDatabaseDATABASEprivate static PathDB_HISTORY_PATHprivate static intMAXIMUM_NO_RECORDS_CONSUMESprivate static intROW_COUNTprivate static StringSERVER_NAME-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description IncrementalSnapshotIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()voidbefore()protected Configurationconfig()protected Map<Integer,Integer>consumeMixedWithIncrementalSnapshot(int recordCount)protected Map<Integer,Integer>consumeMixedWithIncrementalSnapshot(int recordCount, Predicate<Map.Entry<Integer,Integer>> dataCompleted, Consumer<List<org.apache.kafka.connect.source.SourceRecord>> recordConsumer)protected intgetMaximumEnqueuedRecordCount()voidinserts()private voidpopulateTable()protected voidsendAdHocSnapshotSignal()voidsnapshotOnly()voidsnapshotOnlyWithRestart()voidupdates()voidupdatesLargeChunk()voidupdatesWithRestart()-
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
-
-
-
-
Field Detail
-
ROW_COUNT
private static final int ROW_COUNT
- See Also:
- Constant Field Values
-
MAXIMUM_NO_RECORDS_CONSUMES
private static final int MAXIMUM_NO_RECORDS_CONSUMES
- See Also:
- Constant Field Values
-
DB_HISTORY_PATH
private static final Path DB_HISTORY_PATH
-
SERVER_NAME
private static final String SERVER_NAME
- See Also:
- Constant Field Values
-
DATABASE
private final UniqueDatabase DATABASE
-
-
Method Detail
-
before
public void before() throws SQLException- Throws:
SQLException
-
after
public void after()
-
populateTable
private void populateTable() throws SQLException- Throws:
SQLException
-
consumeMixedWithIncrementalSnapshot
protected Map<Integer,Integer> consumeMixedWithIncrementalSnapshot(int recordCount) throws InterruptedException
- Throws:
InterruptedException
-
consumeMixedWithIncrementalSnapshot
protected Map<Integer,Integer> consumeMixedWithIncrementalSnapshot(int recordCount, Predicate<Map.Entry<Integer,Integer>> dataCompleted, Consumer<List<org.apache.kafka.connect.source.SourceRecord>> recordConsumer) throws InterruptedException
- Throws:
InterruptedException
-
sendAdHocSnapshotSignal
protected void sendAdHocSnapshotSignal() throws SQLException- Throws:
SQLException
-
config
protected Configuration config()
-
getMaximumEnqueuedRecordCount
protected int getMaximumEnqueuedRecordCount()
- Overrides:
getMaximumEnqueuedRecordCountin classAbstractConnectorTest
-
-