Package io.debezium.server.redis
Class RedisOffsetIT
java.lang.Object
io.debezium.server.redis.RedisOffsetIT
- Direct Known Subclasses:
RedisOffsetConfigurationIT
@QuarkusTestResource(RedisTestResourceLifecycleManager.class)
public class RedisOffsetIT
extends Object
Integration test that verifies reading and writing offsets from Redis key value store
- Author:
- Oren Elias
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static redis.clients.jedis.Jedisprivate static final intprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate PostgresConnectionvoidTest retry mechanism when encountering Redis connectivity issues: 1.void
-
Field Details
-
MESSAGE_COUNT
private static final int MESSAGE_COUNT- See Also:
-
STREAM_NAME
- See Also:
-
jedis
protected static redis.clients.jedis.Jedis jedis
-
-
Constructor Details
-
RedisOffsetIT
public RedisOffsetIT()
-
-
Method Details
-
getPostgresConnection
-
testRedisStream
- Throws:
Exception
-
testRedisConnectionRetry
Test retry mechanism when encountering Redis connectivity issues: 1. Make Redis to be unavailable while the server is up 2. Create a new table named redis_test in PostgreSQL and insert 5 records to it 3. Bring Redis up again and make sure the offsets have been written successfully- Throws:
Exception
-