-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrademanager: defer retrieval of cluster ID
Previously, the upgrade manager's constructor took the cluster ID directly. However, the cluster ID may not be initialised at the point of constructing the manager. This isn't typically a problem because in most cases, the only upgrade that _require_ the cluster ID doesn't actually take the cluster ID from the manager. Rather, it gets the cluster ID from the execution context of the migration job on resumption. But, tests such as TestRetriesWithExponentialBackoff set the DontUseJobs testing hook. In this case, the migration manager runs the upgrades directly, passing its own copy of the cluster ID, which is unitialized. To fix this, we pass the cluster ID container rather than the cluster ID so that we can defer retrieving it until we actually run the migrations, at which point it should be set. Informs #112763 Release note: none
- Loading branch information
1 parent
06add59
commit 0e48843
Showing
3 changed files
with
7 additions
and
9 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