server: extract the call to startSampleEnvironment()
from StartTenant/StartServer [CRDB-14537 followup]
#84589
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
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 incli/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
The text was updated successfully, but these errors were encountered: