Package io.debezium.connector.mysql
Class SnapshotSourceIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mysql.SnapshotSourceIT
- All Implemented Interfaces:
Testing
- Direct Known Subclasses:
SnapshotParallelSourceIT
- Author:
- Randall Hauch
-
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 TypeFieldDescriptionprivate final UniqueDatabaseprivate Configurationprivate final UniqueDatabaseprivate final UniqueDatabaseprivate final UniqueDatabaseprivate static final PathFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprivate LinkedHashSet<String>getTableNamesInSpecifiedOrder(String... tables) private Stringvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected Configuration.Builderprivate voidsnapshotOfSingleDatabase(boolean useGlobalLock, boolean storeOnlyCapturedTables, boolean data) voidprivate longtoMicroSeconds(String duration) 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, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getMaximumEnqueuedRecordCount, 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
-
SCHEMA_HISTORY_PATH
-
DATABASE
-
OTHER_DATABASE
-
BINARY_FIELD_DATABASE
-
CONFLICT_NAMES_DATABASE
-
config
-
skipRule
-
getTableNameFromSourceRecord
-
-
Constructor Details
-
SnapshotSourceIT
public SnapshotSourceIT()
-
-
Method Details
-
beforeEach
public void beforeEach() -
afterEach
public void afterEach() -
simpleConfig
-
shouldCreateSnapshotOfSingleDatabase
- Throws:
Exception
-
shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLock
- Throws:
Exception
-
shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyCapturedTables
public void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyCapturedTables() throws Exception- Throws:
Exception
-
shouldCreateSnapshotOfSingleDatabaseNoData
- Throws:
Exception
-
shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockNoData
- Throws:
Exception
-
shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyCapturedTablesNoData
public void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyCapturedTablesNoData() throws Exception- Throws:
Exception
-
snapshotOfSingleDatabase
private void snapshotOfSingleDatabase(boolean useGlobalLock, boolean storeOnlyCapturedTables, boolean data) throws Exception - Throws:
Exception
-
snapshotWithBackupLocksShouldNotWaitForReads
- Throws:
Exception
-
shouldCreateSnapshotSelectively
- Throws:
Exception
-
shouldNotFailStreamingOnNonSnapshottedTable
- Throws:
Exception
-
shouldSnapshotCorrectlyReadFields
- Throws:
Exception
-
shouldCreateSnapshotOfSingleDatabaseUsingInsertEvents
- Throws:
Exception
-
productsTableName
- Throws:
SQLException
-
shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges
- Throws:
Exception
-
shouldCreateSnapshotSchemaOnlyRecovery_exception
- Throws:
Exception
-
shouldCreateSnapshotSchemaOnlyRecovery
- Throws:
Exception
-
shouldSnapshotTablesInOrderSpecifiedInTableIncludeList
- Throws:
Exception
-
shouldSnapshotTablesInOrderSpecifiedInTableIncludeListWithConflictingNames
@FixFor("DBZ-6533") public void shouldSnapshotTablesInOrderSpecifiedInTableIncludeListWithConflictingNames() throws Exception- Throws:
Exception
-
shouldSnapshotTablesInRowCountOrderAsc
- Throws:
Exception
-
shouldSnapshotTablesInRowCountOrderDesc
- Throws:
Exception
-
shouldSnapshotTablesInLexicographicalOrder
- Throws:
Exception
-
getTableNamesInSpecifiedOrder
-
shouldCreateSnapshotSchemaOnly
- Throws:
Exception
-
toMicroSeconds
-