Class ParallelSnapshotReaderTest
java.lang.Object
io.debezium.connector.mysql.legacy.ParallelSnapshotReaderTest
- Author:
- Moira Tagle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.kafka.connect.source.SourceRecordCreate an "offset" containing a single timestamp element with the given value.voidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
ParallelSnapshotReaderTest
public ParallelSnapshotReaderTest()
-
-
Method Details
-
startStartsBothReaders
public void startStartsBothReaders() -
pollCombinesBothReadersPolls
- Throws:
InterruptedException
-
pollReturnsNewIfOldReaderIsStopped
- Throws:
InterruptedException
-
pollReturnsOldIfNewReaderIsStopped
- Throws:
InterruptedException
-
pollReturnsNullIfBothReadersAreStopped
- Throws:
InterruptedException
-
testStopStopsBothReaders
public void testStopStopsBothReaders() -
testHaltingPredicateHonorsTimeRange
public void testHaltingPredicateHonorsTimeRange() -
testHaltingPredicateFlipsthisReaderNearEnd
public void testHaltingPredicateFlipsthisReaderNearEnd() -
testHaltingPredicateHalts
public void testHaltingPredicateHalts() -
createSourceRecordWithTimestamp
Create an "offset" containing a single timestamp element with the given value. Needed becauseParallelSnapshotReader.ParallelHaltingPredicatehalts based on how close the record's timestamp is to the present time.- Parameters:
ts- the timestamp in the resulting offset.- Returns:
- an "offset" containing the given timestamp.
-