-
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.
serverutils: prevent start tenant when probabilistic behaviour is active
The probabilistic behaviour that maybe starts a test tenant currently present in test server and test cluster is not widely known or apparent. This change seeks to alleviate that by warning, via an error, new test authors that if they start a tenant in a test there is the possibility that a default test tenant could also be started. This is so that the author of a test can make an informed decision whether to control the starting of tenants or allow probabilistic behaviour to take effect. Previously there was a `DisableDefaultTestTenant` test arg for tests that wanted to opt out of the probabilistic behaviour. This argument has been augmented to now support multiple modes for more flexibility. Tests can now choose to rely on the probabilistic test tenant, or create its own tenants, or both. The main purpose of the default mode which disallows the starting of tenants is to enlighten test authors of the possible presence of the default test tenant. It is still possible to have the probabilistic behaviour and start tenants in the test as well, but it has to be explicitly set in the arguments if the test author seeks this behaviour. Numerous tests that currently start the test tenant in the test itself, had this behaviour. Those tests have been updated to disable the default test tenant from probabilistically starting. As these tests would now have raised an error (warning) without changes. Epic: CRDB-18499
- Loading branch information
1 parent
bebd2dd
commit cfa4375
Showing
115 changed files
with
508 additions
and
370 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
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.