-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
96282: logictest: fix user cmd to respect nodeidx r=rafiss a=andyyang890 logictest: change logicTest to store per-node clients for users This patch changes the `clients` field within `logicTest` from type `map[string]*gosql.DB` to `map[string]map[int]*gosql.DB` in order to store per-node clients for each user. This allows the `user` cmd in logic tests to fetch a client for the specified node instead of the previously used node. Release note: None ---- logictest: move paragraph in comment that got separated Release note: None ---- logictest: fix user cmd to respect nodeidx for cockroach-go testserver This patch fixes the client creation for logic tests that use the cockroach-go testserver to use the specified nodeidx when connecting. Release note: None ---- Informs #92342 96345: pgwire,server: clarify to SQL clients when they select the wrong tenant r=rafiss a=knz Fixes #92525. Epic: CRDB-14537 Prior to this patch: ``` $ ./cockroach sql -d cluster:wo ERROR: server closed the connection. Is this a CockroachDB node? unexpected EOF ``` After this patch: ``` $ ./cockroach sql -d cluster:woo ERROR: service unavailable for target tenant (woo) SQLSTATE: 08000 HINT: Double check your "-ccluster=" connection parameter or your "cluster:" database name prefix. ``` Release note: None Co-authored-by: Andy Yang <[email protected]> Co-authored-by: Raphael 'kena' Poss <[email protected]>
- Loading branch information
Showing
9 changed files
with
208 additions
and
125 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
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
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
Oops, something went wrong.