Package io.debezium.server.redis
Class RedisDatabaseHistoryIT
java.lang.Object
io.debezium.relational.history.AbstractDatabaseHistoryTest
io.debezium.server.redis.RedisDatabaseHistoryIT
@QuarkusTestResource(RedisTestResourceLifecycleManager.class)
public class RedisDatabaseHistoryIT
extends AbstractDatabaseHistoryTest
Integration test that verifies reading and writing database history from Redis key value store
- Author:
- Oren Elias
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static redis.clients.jedis.Jedisprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected DatabaseHistoryprivate MySqlConnectionvoidvoidvoidTest retry mechanism when encountering Redis connectivity issues: 1.
-
Field Details
-
STREAM_NAME
- See Also:
-
jedis
protected static redis.clients.jedis.Jedis jedis
-
-
Constructor Details
-
RedisDatabaseHistoryIT
public RedisDatabaseHistoryIT()
-
-
Method Details
-
beforeEach
@BeforeEach public void beforeEach()- Overrides:
beforeEachin classAbstractDatabaseHistoryTest
-
createHistory
- Specified by:
createHistoryin classAbstractDatabaseHistoryTest
-
testDatabaseHistoryIsSaved
- Throws:
Exception
-
shouldRecordChangesAndRecoverToVariousPoints
@Test @FixFor("DBZ-4771") public void shouldRecordChangesAndRecoverToVariousPoints()- Overrides:
shouldRecordChangesAndRecoverToVariousPointsin classAbstractDatabaseHistoryTest
-
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 history has been written successfully- Throws:
Exception
-
getMySqlConnection
-