forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
113770: pkg/cli: move the default store for tenants back to using tenant-id as suffix r=andy-kimball a=jaylim-crl Previously, in cockroachdb#110082, we updated the default tenant store to use a random suffix, and to be precise, the PID. This can lead to a bunch of directories being generated whenever someone runs `mt start-sql` locally. The original motivation of using a PID was because with the `--tenant-id-flag`, we no longer have a tenant ID during process startup, so we can't construct the default store's name. This commit reverts that change and moves the default tenant store back to using tenant-id as a suffix to avoid the issues described above. Given that the original problem only existed when the `--tenant-id-flag` is supplied, we will explicitly require that the flag is used with the `--store` flag. This only impacts local development, and the --tenant-id-flag is only used by CockroachDB Cloud. For an internal discussion, see Slack thread: https://cockroachlabs.slack.com/archives/C02HWA24541/p1699021756659579. Epic: none Release note: None Co-authored-by: Jay <[email protected]>
- Loading branch information
Showing
2 changed files
with
47 additions
and
14 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