Class RedisSchemaHistoryIT

java.lang.Object
io.debezium.server.redis.RedisSchemaHistoryIT

@QuarkusTestResource(RedisTestResourceLifecycleManager.class) public class RedisSchemaHistoryIT extends Object
Integration test that verifies reading and writing database schema history from Redis key value store
Author:
Oren Elias
  • Field Details

    • STREAM_NAME

      private static final String STREAM_NAME
      See Also:
    • INIT_HISTORY_SIZE

      private static final int INIT_HISTORY_SIZE
      See Also:
    • jedis

      protected static redis.clients.jedis.Jedis jedis
    • history

      protected io.debezium.relational.history.SchemaHistory history
  • Constructor Details

    • RedisSchemaHistoryIT

      public RedisSchemaHistoryIT()
  • Method Details

    • beforeEach

      @BeforeEach public void beforeEach()
    • afterEach

      @AfterEach public void afterEach()
    • testSchemaHistoryIsSaved

      @Test @FixFor("DBZ-4771") public void testSchemaHistoryIsSaved()
    • testRedisConnectionRetry

      @Test @FixFor("DBZ-4509") public void testRedisConnectionRetry() throws Exception
      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.jdbc.JdbcConnection getMySqlConnection()