You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
107612: serverutils: clean up some interfaces r=knz a=knz
Epic: CRDB-18499
Part of solving cockroachdb#107058.
Informs cockroachdb#106772.
In this commit:
- `TestTenantInterface` renamed to `ApplicationLayerInterface`.
- `TestServerInterface` split into:
- `StorageLayerInterface` containing most of the methods previously
in `TestServerInterface`.
- `TenantControlInterface` with just the methods relating to
starting the service for secondary tenants.
- Relevant methods moved from `TestServerInterface` to
`ApplicationLayerInterface`:
- `ServingSQLAddr()` - renamed to `AdvSQLAddr()`
- `RPCAddr()`
- `LeaseManager()`
- `DistSenderI()`
- `MigrationServer()`
- `SetDistSQLSpanResolver()`
- `CollectionFactory()`
- `SystemTableIDResolver()`
- Removed `HostSQLAddr()` - use `.SystemLayer().AdvSQLAddr()` instead.
- `AdvSQLAddr()` (previously `ServingSQLAddr()`) was
simplified to always return the advertised SQL address for the
current layer.
- Updated comments/docstrings for the interfaces.
Release note: None
Co-authored-by: Raphael 'kena' Poss <[email protected]>
0 commit comments