Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPE-2900] Cross-region async replication integration tests #448

Merged
merged 24 commits into from
May 25, 2024

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Apr 17, 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 <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
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.

Thank you! Excellent!
P.S. please fire a followup ticket/PR for the same issue as described here: canonical/postgresql-operator#453 (review)

@dragomirp
Copy link
Contributor

Not an issue with the PR, but I don't think we'll see details about the second model in the juju status and juju debug-log CI jobs. Going forward we should think for a way to expose that via the shared workflow.

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…tion-integration-tests

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
@marceloneppel
Copy link
Member Author

Not an issue with the PR, but I don't think we'll see details about the second model in the juju status and juju debug-log CI jobs. Going forward we should think for a way to expose that via the shared workflow.

I agree. That would help us to understand what's happening in the second model when something fails.

Base automatically changed from dpe-2897-async-replication to main May 3, 2024 02:29
…ation-integration-tests

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…ation-integration-tests

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…ation-integration-tests

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
@marceloneppel marceloneppel merged commit 582b3b9 into main May 25, 2024
47 checks passed
@marceloneppel marceloneppel deleted the dpe-2900-async-replication-integration-tests branch May 25, 2024 14:09
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