Class ParallelSnapshotReaderTest


  • public class ParallelSnapshotReaderTest
    extends Object
    Author:
    Moira Tagle
    • Constructor Detail

      • ParallelSnapshotReaderTest

        public ParallelSnapshotReaderTest()
    • Method Detail

      • startStartsBothReaders

        public void startStartsBothReaders()
      • testStopStopsBothReaders

        public void testStopStopsBothReaders()
      • testHaltingPredicateHonorsTimeRange

        public void testHaltingPredicateHonorsTimeRange()
      • testHaltingPredicateFlipsthisReaderNearEnd

        public void testHaltingPredicateFlipsthisReaderNearEnd()
      • testHaltingPredicateHalts

        public void testHaltingPredicateHalts()
      • createSourceRecordWithTimestamp

        private org.apache.kafka.connect.source.SourceRecord createSourceRecordWithTimestamp​(Instant ts)
        Create an "offset" containing a single timestamp element with the given value. Needed because ParallelSnapshotReader.ParallelHaltingPredicate halts based on how close the record's timestamp is to the present time.
        Parameters:
        tsSec - the timestamp in the resulting offset.
        Returns:
        an "offset" containing the given timestamp.