forked from juju/juju
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#16129 from manadart/3.2-dbaccessor-tests
juju#16129 JUJU-4510 We previously introduced back-stop behaviour for the Dqlite cluster whereby if we fail to start the local node, we request API server details and wait. If we get a message indicating that we are the last remaining node, we reconfigure the cluster. However, if we get a message indicating other cluster members, we return an error from the worker, resulting in a restart by the dependency engine. It turns out it is possible to get into the latter situation when Dqlite is starting and does not process cluster changes quickly enough. This is under investigation, but it makes more sense just to retry starting Dqlite instead of throwing an error. The same behaviour will result, but with less disruption to the worker graph. It may also speed entry into HA. Included are some cherry picks from main for test reorganisation. ## QA steps This cannot be replicated consistently. When enabling HA, if establishing the cluster takes more than a minute, you will see the log message _unable to reconcile current controller and Dqlite cluster status; reattempting node start-up_ instead of the worker returning an error. ## Documentation changes None. ## Bug reference In service of https://bugs.launchpad.net/juju/+bug/2015371.
- Loading branch information
Showing
3 changed files
with
105 additions
and
85 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
Oops, something went wrong.