-
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.
Browse files
Browse the repository at this point in the history
86334: *: add restriction to running DDL with internal executors r=ajwerner,rafiss a=ZhouXing19 The current internal executor has its lifecycle, which makes it erroneous when being used to execute DDL statements if under an outer txn. In this commit, we 1. Migrated the existing DDLs with internal executor with not-nil txn to either `descs.CollectionFactory.TxnWithExecutor()` or `planner.WithInternalExecutor()`. Only internal executors inited via these 2 interfaces are bounded with txn-related metadata, and hence are allowed to run DDLs in a transactional manner. 2. Added a restriction for running DDLs with internal executor only if it's bound with txn-related metadata. fixes #87281 Release justification: bug fix for the internal executor Release note: none 87304: roachtest: refactor github issue posting and expose actual vm args for reporting r=renatolabs a=smg260 The change is split into 2 commits. 1. More strictly addresses [81846](#81846). Also addresses [this](https://github.com/cockroachdb/cockroach/pull/87304/files#diff-1e3ec1fc5bade2df4b8681c44959be2a390f703839f30a979da98f963769c9fcR1046) existing TODO 2. Refactors functions related to posting an issue to github into a separate source file and adds tests. These commits can be squashed but are separate at the moment for convenience. Resolves: #81846 Release justification: test-only change Release note: none 87896: ci: fix validation for mixed version schema change corpus r=fqazi a=fqazi Informs: #86381 Previously, the command for validating the mixed version corpus was invalid. This patch fixes the validation command to address this, so the mixed version corpus is automatically uploaded. Release note: None 88138: server: return all completed stmt diag requests r=xinhaoz a=xinhaoz Fixes #80104 Previously, we only return statement diagnostics requests that have not yet expired. Since we use the results of this request to populate completed statement diagnostics bundles in addition to outstanding requests, completed statement diag bundles would disappear from the UI after the request expired. This commit ensures that `StatementDiagnosticsRequests` returns all completed stmt diag requests so that we can display the complete history of completed bundles in the UI. Release note (bug fix): completed stmt diagnostics bundles now persist in the UI in stmt diag bundle pages 88159: ui/cluster-ui: fix jobs page polling r=xinhaoz a=xinhaoz Fixes #68109 Previously, the jobs page would not poll for new data until a re-render was triggered. This commit updates the jobs page polling to every 10s regardless of whether or not the rest of the page has changed. Release note (bug fix): jobs page refreshes page data at an interval of 10s 88165: sql: version gate idx recommendations in insert-stmt-stats r=ericharmeling a=ericharmeling This commit version gates index recommendation insert in insert-stmt-stats. Fixes #88140. Release note: None 88168: api: increase timeout of sql api r=maryliag a=maryliag Previously, some request using the sql-over-http api were hitting a timeout, with the default value of 5s. This commit increases to 300s (5min) on the calls made from SQL Activity and Insights pages. Fixes #88094 Release note: None 88173: cli/sql: put a limit on history size r=DrewKimball a=knz Fixes #54679. Previously, there was no limit. Some users managed to make their history run into megabyte-size, despite de-duplication, which was causing slowness. This patch fixes it by adding a limit of 1000 entries. Sufficiently large to not be inconvenient, but sufficiently small that it prevents the history file from growing abnormally large. Release note (cli change): The interactive SQL shell now retains a maximum of 1000 entries. There was no limit previously. 88193: kv: hoist log.ExpensiveLogEnabled outside loop in appendRefreshSpans r=arulajmani a=nvanbenschoten This commit hoists the call to `log.ExpensiveLogEnabled` outside of the per-span loop in `txnSpanRefresher.appendRefreshSpans`. The function is too expensive to call once per span. Release justification: low risk change that may close perf gap. Release note: None. Co-authored-by: Jane Xing <zhouxing@uchicago.edu> Co-authored-by: Miral Gadani <miral@cockroachlabs.com> Co-authored-by: Faizan Qazi <faizan@cockroachlabs.com> Co-authored-by: Xin Hao Zhang <xzhang@cockroachlabs.com> Co-authored-by: Eric Harmeling <eric.harmeling@cockroachlabs.com> Co-authored-by: Marylia Gutierrez <marylia@cockroachlabs.com> Co-authored-by: Raphael 'kena' Poss <knz@thaumogen.net> Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
- Loading branch information
Showing
69 changed files
with
1,187 additions
and
520 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
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
43 changes: 43 additions & 0 deletions
43
pkg/ccl/backupccl/testdata/backup-restore/file_table_read_write
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
subtest backup_file_table | ||
|
||
new-server name=s1 | ||
---- | ||
|
||
exec-sql | ||
CREATE DATABASE to_backup; | ||
---- | ||
|
||
exec-sql | ||
CREATE DATABASE backups; | ||
---- | ||
|
||
exec-sql | ||
BACKUP DATABASE to_backup INTO 'userfile://backups.public.userfiles_$user/data'; | ||
---- | ||
|
||
query-sql | ||
SELECT * FROM backups.crdb_internal.invalid_objects; | ||
---- | ||
|
||
exec-sql | ||
USE backups; | ||
---- | ||
|
||
query-sql | ||
SELECT * FROM pg_catalog.pg_tables where schemaname='public'; | ||
---- | ||
public userfiles_$user_upload_files root <nil> true false false false | ||
public userfiles_$user_upload_payload root <nil> true false false false | ||
|
||
query-sql | ||
SELECT conname FROM pg_catalog.pg_constraint con | ||
INNER JOIN pg_catalog.pg_class rel ON rel.oid = con.conrelid | ||
INNER JOIN pg_catalog.pg_namespace nsp | ||
ON nsp.oid = connamespace | ||
WHERE rel.relname='userfiles_$user_upload_payload' | ||
ORDER BY conname; | ||
---- | ||
file_id_fk | ||
userfiles_$user_upload_payload_pkey | ||
|
||
subtest end |
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
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.