public class SnapshotSourceIT extends AbstractConnectorTest
AbstractConnectorTest.SourceRecordsTesting.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
private Configuration |
config |
private UniqueDatabase |
DATABASE |
private static Path |
DB_HISTORY_PATH |
private Function<org.apache.kafka.connect.source.SourceRecord,String> |
getTableNameFromSourceRecord |
private UniqueDatabase |
OTHER_DATABASE |
SkipTestRule |
skipRule |
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
SnapshotSourceIT() |
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, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecordsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timeprivate static final Path DB_HISTORY_PATH
private final UniqueDatabase DATABASE
private final UniqueDatabase OTHER_DATABASE
private Configuration config
public SkipTestRule skipRule
public void beforeEach()
public void afterEach()
protected Configuration.Builder simpleConfig()
public void shouldCreateSnapshotOfSingleDatabase()
throws Exception
Exceptionpublic void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLock()
throws Exception
Exceptionpublic void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyMonitoredTables()
throws Exception
Exceptionpublic void shouldCreateSnapshotOfSingleDatabaseNoData()
throws Exception
Exceptionpublic void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockNoData()
throws Exception
Exceptionpublic void shouldCreateSnapshotOfSingleDatabaseWithoutGlobalLockAndStoreOnlyMonitoredTablesNoData()
throws Exception
Exceptionprivate void snapshotOfSingleDatabase(boolean useGlobalLock,
boolean storeOnlyMonitoredTables,
boolean data)
throws Exception
Exceptionpublic void snapshotWithBackupLocksShouldNotWaitForReads()
throws Exception
Exception@FixFor(value="DBZ-2456") public void shouldCreateSnapshotSelectively() throws Exception
Exceptionpublic void shouldCreateSnapshotOfSingleDatabaseUsingInsertEvents()
throws Exception
Exceptionprivate String productsTableName() throws SQLException
SQLExceptionpublic void shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges()
throws Exception
Exceptionpublic void shouldCreateSnapshotSchemaOnlyRecovery_exception()
throws Exception
Exceptionpublic void shouldCreateSnapshotSchemaOnlyRecovery()
throws Exception
Exceptionpublic void shouldSnapshotTablesInOrderSpecifiedInTableIncludeList()
throws Exception
Exceptionpublic void shouldSnapshotTablesInOrderSpecifiedInTablesWhitelist()
throws Exception
Exceptionpublic void shouldSnapshotTablesInLexicographicalOrder()
throws Exception
Exceptionprivate LinkedHashSet<String> getTableNamesInSpecifiedOrder(String... tables)
public void shouldCreateSnapshotSchemaOnly()
throws Exception
Exceptionprivate long toMicroSeconds(String duration)
Copyright © 2021 JBoss by Red Hat. All rights reserved.