-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable full cluster crash and restart test and changes to somewhat st…
…ablise the test suite (#55) * Pass prebuilt charm to tests for local execution * Enable postgres process for full cluster restart test * Revert "Pass prebuilt charm to tests for local execution" This reverts commit cc7f199. * Bump up ops framework * Add retries when dropping continuous_writes table * Terminating continuous_writes in test charm * Version bump for deps * Revert "Version bump for deps" This reverts commit 8e70a6f. * Version bump for libs * Switch test app charm to peer relation for storing cont writes PId * Code review tweaks * Don't count on endpoints change * Syncmode (#64) * Syncmode * Nuke pgconf * Refactor * Fake strict sync mode * Update charm.py * FFWD cleanup * Always fail * Update helpers.py * Add observer that updates endpoints on relation (#58) * Pass prebuilt charm to tests for local execution * Enable postgres process for full cluster restart test * Revert "Pass prebuilt charm to tests for local execution" This reverts commit cc7f199. * Add observer that updates endpoints on relation * Fixing logic * Bump up ops framework * Fix the logic to update the unit databag when it's clearead on another unit * Fix observer start * Fixes in the test * Fix part of the unit tests * Fix remaining unit tests * Minor adjustments in the code * Fix machine start * Add copyright notice * Add retries when dropping continuous_writes table * Terminating continuous_writes in test charm * Version bump for deps * Revert "Version bump for deps" This reverts commit 8e70a6f. * Version bump for libs * Switch test app charm to peer relation for storing cont writes PId * Code review tweaks * Fix TLS test * Comment logs * Fix get_member_ip * Add a call to relation endpoints update * Fix and revert changes * Change sleep time * Revert changes * Minor fixes * Revert lib changes * Revert requirements changes * Uncomment charms removal * Remove log calls * Add unit tests to the observer * Fix incorrect user deletion * Fix unit tests --------- Co-authored-by: Dragomir Penev <[email protected]> * Pass down unit for kill and restart tests * Reset master_start_timeout just once * Tweaks * Increase wait for test_forceful_restart_without_data_and_transaction_logs * Only check writes from sync standby or primary * Tweak helpers and disable freeze postgresql process * Wait a bit on first count during restart tests * Reenable freeze postgresql process * Don't accept string None in _connection_string --------- Co-authored-by: Marcelo Henrique Neppel <[email protected]> * Disable synchronous_mode_strict (#70) * Disable synchronous_mode_strict * Custom failover event * Don't specify switchover candidate * HA tweaks * Check for primary before dropping continuous_writes * Unit tests * Dropping and creating test table * Update src/cluster.py Co-authored-by: Marcelo Henrique Neppel <[email protected]> --------- Co-authored-by: Marcelo Henrique Neppel <[email protected]> * increase test_forceful_restart_without_data_and_transaction_logs timeout * Set synchronous_node_count to cluster minority count (#72) * Revert autofailover * Update sync_node_count * Don't rely on planned_units when downscaling * Wait for standbys * Handle error on update_synchronous_node_count during scale down * Update tests/integration/ha_tests/application-charm/src/charm.py Co-authored-by: Mykola Marzhan <[email protected]> * Code review tweaks --------- Co-authored-by: Marcelo Henrique Neppel <[email protected]> Co-authored-by: Mykola Marzhan <[email protected]>
- Loading branch information
1 parent
17e902c
commit 48e00c3
Showing
17 changed files
with
403 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ops >= 1.5.0 | ||
ops >= 2.0.0 | ||
tenacity==8.1.0 |
Oops, something went wrong.