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-3559] Stabilise restore cluster test #351

Merged
merged 3 commits into from
Feb 17, 2024

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Feb 12, 2024

Issue

The restore cluster test was failing a lot of times due to the replication user password not being updated, which led to follower units not being able to connect to the primary to get the data.

Solution

Update all users' passwords in the test.

Also, use this opportunity to change the blocked status with the message no primary in the cluster to a waiting status because it's resolved after some time (no need for user action).

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

codecov bot commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (64b65b4) 80.03% compared to head (ee5d84e) 81.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #351      +/-   ##
==========================================
+ Coverage   80.03%   81.33%   +1.29%     
==========================================
  Files          10       10              
  Lines        2209     2207       -2     
  Branches      355      353       -2     
==========================================
+ Hits         1768     1795      +27     
+ Misses        372      343      -29     
  Partials       69       69              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
@marceloneppel marceloneppel marked this pull request as ready for review February 14, 2024 11:57
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 catch! I have just a curiosity question: why it failed sometimes only IF password mismatch was invariant. LGTM

@marceloneppel marceloneppel merged commit f843b52 into main Feb 17, 2024
44 checks passed
@marceloneppel marceloneppel deleted the dpe-3559-stabilise-restore-cluster-test branch February 17, 2024 14:08
BON4 pushed a commit to BON4/postgresql-operator that referenced this pull request Apr 23, 2024
* Improve unit status about no connection to primary

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

* Update other users passwords in the second cluster

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

* Add unit tests

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

---------

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
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.

None yet

3 participants