Skip to content
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

server: extract the call to startSampleEnvironment() from StartTenant/StartServer [CRDB-14537 followup] #84589

Closed
Tracked by #91282
knz opened this issue Jul 18, 2022 · 0 comments · Fixed by #96168
Closed
Tracked by #91282
Assignees
Labels
A-multitenancy Related to multi-tenancy C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-multitenant Issues owned by the multi-tenant virtual team

Comments

@knz
Copy link
Contributor

knz commented Jul 18, 2022

The function startSampleEnvironment() starts the logic that collects goroutine dumps / heap profiles etc.

This logic is process-wide and thus not specific to just 1 tenant.

Currently the call is made from inside startTenantInternal() (because the code in cli/mt_start_sql.go doesn't have another way to call it). This is illogical.

We need to remove it from there when running multiple tenants in-memory.

Epic: CRDB-14537

Jira issue: CRDB-17752

@knz knz added the C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. label Jul 18, 2022
@knz knz added A-multitenancy Related to multi-tenancy T-multitenant Issues owned by the multi-tenant virtual team labels Jan 10, 2023
@craig craig bot closed this as completed in c410d8d Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-multitenancy Related to multi-tenancy C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-multitenant Issues owned by the multi-tenant virtual team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant