Class AbstractKafkaSchemaHistoryTest<P extends io.debezium.connector.binlog.BinlogPartition,O extends io.debezium.connector.binlog.BinlogOffsetContext<?>>

java.lang.Object
io.debezium.relational.history.AbstractKafkaSchemaHistoryTest<P,O>

public abstract class AbstractKafkaSchemaHistoryTest<P extends io.debezium.connector.binlog.BinlogPartition,O extends io.debezium.connector.binlog.BinlogOffsetContext<?>> extends Object
Author:
Randall Hauch
  • Field Details

    • kafka

      private static KafkaCluster kafka
    • history

      private io.debezium.storage.kafka.history.KafkaSchemaHistory history
    • offsets

      private io.debezium.pipeline.spi.Offsets<io.debezium.pipeline.spi.Partition,O extends io.debezium.connector.binlog.BinlogOffsetContext<?>> offsets
    • position

      private O extends io.debezium.connector.binlog.BinlogOffsetContext<?> position
    • interceptor

      private LogInterceptor interceptor
    • PARTITION_NO

      private static final int PARTITION_NO
      See Also:
  • Constructor Details

    • AbstractKafkaSchemaHistoryTest

      public AbstractKafkaSchemaHistoryTest()
  • Method Details

    • startKafka

      public static void startKafka() throws Exception
      Throws:
      Exception
    • stopKafka

      public static void stopKafka()
    • beforeEach

      public void beforeEach() throws Exception
      Throws:
      Exception
    • afterEach

      public void afterEach()
    • shouldStartWithEmptyTopicAndStoreDataAndRecoverAllState

      public void shouldStartWithEmptyTopicAndStoreDataAndRecoverAllState() throws Exception
      Throws:
      Exception
    • createPartition

      protected abstract P createPartition(String serverName, String databaseName)
    • createOffsetContext

      protected abstract O createOffsetContext(Configuration config)
    • getDdlParser

      protected abstract DdlParser getDdlParser()
    • testHistoryTopicContent

      private void testHistoryTopicContent(String topicName, boolean skipUnparseableDDL)
    • setLogPosition

      protected void setLogPosition(int index)
    • shouldIgnoreUnparseableMessages

      public void shouldIgnoreUnparseableMessages() throws Exception
      Throws:
      Exception
    • shouldStopOnUnparseableSQL

      public void shouldStopOnUnparseableSQL() throws Exception
      Throws:
      Exception
    • shouldSkipMessageOnDDLFilter

      public void shouldSkipMessageOnDDLFilter() throws Exception
      Throws:
      Exception
    • testExists

      public void testExists()
    • differentiateStorageExistsFromHistoryExists

      @FixFor("DBZ-1886") public void differentiateStorageExistsFromHistoryExists()
    • shouldValidateMandatoryValues

      @FixFor("DBZ-2144") public void shouldValidateMandatoryValues()
    • shouldConnectionTimeoutIfValueIsTooLow

      @FixFor("DBZ-4518") public void shouldConnectionTimeoutIfValueIsTooLow()