-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[reconfigurator] Fix DatasetsEditor internal zpool,kind -> ID map (#7216
) Blueprint zones don't contain explicit dataset IDs (yet; see #7214), so `DatasetsEditor` maintained an internal cache mapping `(zpool, kind) -> dataset ID`. However, that mapping is only unique for _in service_ datasets, and `DatasetsEditor` was erroneously trying to build it for _all_ datasets (both in-service and expunged). This PR adds a few property tests and fixes for the maintenance of this cache, and should ensure that we only try to maintain the "at most one dataset of a given kind on a given zpool" map for in-service datasets.
- Loading branch information
1 parent
836deb3
commit 2568a2e
Showing
4 changed files
with
489 additions
and
102 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
7 changes: 7 additions & 0 deletions
7
nexus/reconfigurator/planning/proptest-regressions/blueprint_editor/sled_editor/datasets.txt
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Seeds for failure cases proptest has generated in the past. It is | ||
# automatically read and these particular cases re-run before any | ||
# novel cases are generated. | ||
# | ||
# It is recommended to check this file in to source control so that | ||
# everyone who runs the test benefits from these saved cases. | ||
cc a3c842ed34d27e4c78fb52fd718cfcc038942eca49672c53e126a1062f5db3ac # shrinks to input = _ProptestNamefixmeArgs { values: [[Cockroach]] } |
Oops, something went wrong.