Skip to content

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Apr 22, 2024

Issue

There are no integration tests for cross-region async replication.

Solution

Add integration tests for the following scenarios:

  • Set up async replication between two clusters.
  • Trigger a switchover.
  • Detach a cluster (turning it read-only).
  • Reestablish the async replication.
  • Crash the synchronous standby in the primary cluster.
  • Crash the Standby Leader in the standby cluster.
  • Scale the clusters.

Some of the helper functions were changed to accommodate checks on multiple models, like when checking whether writes are increasing (to now check it in both clusters).

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
@marceloneppel marceloneppel changed the base branch from main to dpe-2953-async-replication April 22, 2024 23:49
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…ation

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. LGTM!

At a followup PR we IMHO need to add test for https://warthogs.atlassian.net/browse/DPE-4238 (A=>B, B=>C) as it is a recovery scenario for the lost cluster A.

…ation

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Base automatically changed from dpe-2953-async-replication to main May 3, 2024 00:27
@marceloneppel marceloneppel merged commit 2c25228 into main May 3, 2024
@marceloneppel marceloneppel deleted the dpe-2955-async-replication-integration-tests branch May 3, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants