-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testutils: add DeploymentMode
method to ApplicationLayerInterface
#140662
testutils: add DeploymentMode
method to ApplicationLayerInterface
#140662
Conversation
ce5e18d
to
45c898b
Compare
@@ -910,6 +910,9 @@ type testTenant struct { | |||
// pgPreServer handles SQL connections prior to routing them to a | |||
// specific tenant. | |||
pgPreServer *pgwire.PreServeConnHandler | |||
// deploymentMode specifies the tenant's deployment mode. | |||
// Allowed values: ExternalProcess or SharedProcess. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The allowed value list is a bit off. Doesn't include: SingleTenant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, testTenant
and testServer
implement ApplicationInterface
, with testTenant
used for secondary tenants and testServer
for a single tenant. That's why I didn't include SingleTenant
here.
1493dc9
to
46fdfca
Compare
Certain tests need to determine the deployment mode of the test server—whether it's single-tenant, shared-process, or external-process. While this can be queried via SQL, a dedicated helper method improves usability. This commit adds `DeploymentMode` to `ApplicationLayerInterface` to provide a simpler way to retrieve this information. Informs: cockroachdb#138912 Epic: CRDB-38970 Release note: None
46fdfca
to
9413682
Compare
Thanks for the reviews! bors r=stevendanna,herkolategan |
Certain tests need to determine the deployment mode of the test
server—whether it's single-tenant, shared-process, or external-process.
While this can be queried via SQL, a dedicated helper method improves
usability.
This commit adds
DeploymentMode
toApplicationLayerInterface
to providea simpler way to retrieve this information.
Informs: #138912
Epic: CRDB-38970
Release note: None