Skip to content

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Feb 9, 2023

Issue

Jira ticket: DPE-1190
The fixture called wal_settings was failing if another error happened stopping the SST test.

Solution

Start the stopped units (they were stopped inside the SST test). This makes the Patroni REST API available again to enable the fixture to rollback the changes in the WAL settings (that were made in the beginning of the test by this fixture) on all the units.

Context

Still need to address transient errors (that triggered the error fixed by this PR in the past) in another PR.

Testing

Manually tested locally.

Release Notes

Fix change WAL settings fixture to start the stopped units.

@marceloneppel marceloneppel changed the title Fix change wal settings Fix change WAL settings fixture Feb 9, 2023
@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Merging #62 (c6453cf) into main (3f09edc) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #62   +/-   ##
=======================================
  Coverage   68.39%   68.39%           
=======================================
  Files           6        6           
  Lines         886      886           
  Branches      133      133           
=======================================
  Hits          606      606           
  Misses        256      256           
  Partials       24       24           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@marceloneppel marceloneppel marked this pull request as ready for review February 9, 2023 12:54
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 85bbe8b into main Feb 10, 2023
@marceloneppel marceloneppel deleted the fix-change-wal-settings branch February 10, 2023 12:41
BON4 pushed a commit to BON4/postgresql-operator that referenced this pull request Apr 23, 2024
* Fix error that is raised when calling change WAL settings

* Remove unused import

* Add reformatted file
github-actions bot added a commit to canonical/test-runners-2-github-x64-postgresql-operator that referenced this pull request May 27, 2024
github-actions bot added a commit to canonical/test-runners-2-azure-arm64-postgresql-operator that referenced this pull request May 27, 2024
github-actions bot added a commit to canonical/test-runners-2-is-x64-postgresql-operator that referenced this pull request May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants