Package io.debezium.relational.history
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 Summary
FieldsModifier and TypeFieldDescriptionprivate io.debezium.storage.kafka.history.KafkaSchemaHistoryprivate LogInterceptorprivate static KafkaClusterprivate io.debezium.pipeline.spi.Offsets<io.debezium.pipeline.spi.Partition,O> private static final intprivate O -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected abstract OcreateOffsetContext(Configuration config) protected abstract PcreatePartition(String serverName, String databaseName) voidprotected abstract DdlParserprotected voidsetLogPosition(int index) voidvoidvoidvoidvoidvoidstatic voidstatic voidvoidprivate voidtestHistoryTopicContent(String topicName, boolean skipUnparseableDDL)
-
Field Details
-
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
-
interceptor
-
PARTITION_NO
private static final int PARTITION_NO- See Also:
-
-
Constructor Details
-
AbstractKafkaSchemaHistoryTest
public AbstractKafkaSchemaHistoryTest()
-
-
Method Details
-
startKafka
- Throws:
Exception
-
stopKafka
public static void stopKafka() -
beforeEach
- Throws:
Exception
-
afterEach
public void afterEach() -
shouldStartWithEmptyTopicAndStoreDataAndRecoverAllState
- Throws:
Exception
-
createPartition
-
createOffsetContext
-
getDdlParser
-
testHistoryTopicContent
-
setLogPosition
protected void setLogPosition(int index) -
shouldIgnoreUnparseableMessages
- Throws:
Exception
-
shouldStopOnUnparseableSQL
- Throws:
Exception
-
shouldSkipMessageOnDDLFilter
- Throws:
Exception
-
testExists
public void testExists() -
differentiateStorageExistsFromHistoryExists
-
shouldValidateMandatoryValues
-
shouldConnectionTimeoutIfValueIsTooLow
-