-
Notifications
You must be signed in to change notification settings - Fork 497
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 #9724 from babbageclunk/raftlease-upgrade-blank
#9724 ## Description of change These were causing errors reported from migrating the leases to raft during the upgrade. The leases wouldn't cause a problem other than a delay, because nothing would be extending them. It's not clear why some production systems have these (possibly they used to be created in some much earlier version and have lasted through upgrades), but they're not valid for raft leases so don't try to migrate them. ## QA steps * Bootstrap a 2.4.x controller. * Monkey with the database to create some leases with blank names and/or holders. * Upgrade the controller to this version of Juju. * There should be no errors about invalid lease names or holders in the controller log, or blank leases in the leaseholders collection. * There shouldn't be any blank leases in the raft snapshot created when migrating the leases. ## Documentation changes None ## Bug reference https://bugs.launchpad.net/juju/+bug/1813995
- Loading branch information
Showing
2 changed files
with
73 additions
and
0 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