Package io.debezium.server.redis
Class RedisSchemaHistoryIT
java.lang.Object
io.debezium.relational.history.AbstractSchemaHistoryTest
io.debezium.server.redis.RedisSchemaHistoryIT
@QuarkusTestResource(RedisTestResourceLifecycleManager.class)
public class RedisSchemaHistoryIT
extends io.debezium.relational.history.AbstractSchemaHistoryTest
Integration test that verifies reading and writing database schema history from Redis key value store
- Author:
- Oren Elias
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprotected static redis.clients.jedis.Jedisprivate static final StringFields inherited from class io.debezium.relational.history.AbstractSchemaHistoryTest
all, history, parser, source1, source2, t0, t1, t2, t3, t4, tables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected io.debezium.relational.history.SchemaHistoryprivate io.debezium.connector.mysql.MySqlConnectionvoidvoidTest retry mechanism when encountering Redis connectivity issues: 1.voidMethods inherited from class io.debezium.relational.history.AbstractSchemaHistoryTest
afterEach, position, record, recover, server
-
Field Details
-
STREAM_NAME
- See Also:
-
INIT_HISTORY_SIZE
private static final int INIT_HISTORY_SIZE- See Also:
-
jedis
protected static redis.clients.jedis.Jedis jedis
-
-
Constructor Details
-
RedisSchemaHistoryIT
public RedisSchemaHistoryIT()
-
-
Method Details
-
beforeEach
@BeforeEach public void beforeEach()- Overrides:
beforeEachin classio.debezium.relational.history.AbstractSchemaHistoryTest
-
createHistory
protected io.debezium.relational.history.SchemaHistory createHistory()- Specified by:
createHistoryin classio.debezium.relational.history.AbstractSchemaHistoryTest
-
testSchemaHistoryIsSaved
@Test @FixFor("DBZ-4771") public void testSchemaHistoryIsSaved() -
shouldRecordChangesAndRecoverToVariousPoints
@Test @FixFor("DBZ-4771") public void shouldRecordChangesAndRecoverToVariousPoints()- Overrides:
shouldRecordChangesAndRecoverToVariousPointsin classio.debezium.relational.history.AbstractSchemaHistoryTest
-
testRedisConnectionRetry
Test retry mechanism when encountering Redis connectivity issues: 1. Make Redis unavailable while the server is up 2. Create a new table named redis_test in MySQL 3. Bring Redis up again and make sure the database schema has been written successfully- Throws:
Exception
-
getMySqlConnection
private io.debezium.connector.mysql.MySqlConnection getMySqlConnection()
-