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-5029] Wait for exact number of units after scale down #565

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Aug 2, 2024

Issue

The test_async_replication_failover_in_main_cluster test often fails with the following error:

File "/home/runner/actions-runner/_work/postgresql-operator/postgresql-operator/tests/integration/ha_tests/test_async_replication.py", line 489, in test_async_replication_failover_in_main_cluster
    assert new_sync_standby != sync_standby, "Sync-standby is the same as before"
AssertionError: Sync-standby is the same as before
assert 'postgresql-1' != 'postgresql-1'

Solution

Wait for the scale in operation to finish before checking whether the sync standby changed.

@marceloneppel marceloneppel force-pushed the dpe-5029-fix-sync-standby-change-check branch from 0b12200 to d9607e6 Compare August 2, 2024 13:47
Copy link

codecov bot commented Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.96%. Comparing base (a870470) to head (d9607e6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #565   +/-   ##
=======================================
  Coverage   70.96%   70.96%           
=======================================
  Files          11       11           
  Lines        3034     3034           
  Branches      538      538           
=======================================
  Hits         2153     2153           
  Misses        765      765           
  Partials      116      116           

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

@marceloneppel marceloneppel marked this pull request as ready for review August 7, 2024 17:33
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!

@marceloneppel marceloneppel merged commit 5337f5d into main Aug 8, 2024
82 checks passed
@marceloneppel marceloneppel deleted the dpe-5029-fix-sync-standby-change-check branch August 8, 2024 11:27
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