forked from cockroachdb/cockroach
-
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.
*: un-singletonize the cluster settings
Apologies to drop such a huge refactoring, but it was a bit of a coup de force required (or at least strongly suggested) by my inflight PR on version migration (cockroachdb#17411). We were previously using our singleton-based `settings` package that originally replaced the use of environment variables. Its use, however, has since diversified, the cluster version setting being the most elaborate addition. In cockroachdb#17411 it has turned out that with these singletons in place, a lot of effort and hacks are required to even be able to run tests at the same version. However, it would be nice to test nonidentical versions in cluster tests. Consequently, this PR - introduces a struct `cluster.Settings` which now holds all the settings previously scattered around the code base; and - plumbs this struct everywhere it's needed. There are some open FIXMEs but I'd like a reviewer to review the bulk that's here in the initial commit (which should pass all tests). I will then address the FIXMEs (which require more focused attention) in follow-up commits, before merging this PR.
- Loading branch information
Showing
145 changed files
with
2,012 additions
and
1,378 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 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.