-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: add restriction to running DDL with internal executors #86334
Commits on Sep 20, 2022
-
*: infuse
CollectionFactory
for storage and backupThis is part of the migration of existing DDL statement with internal executor to `descs.CollectionFactory.TxnWithExecutor()`. DDL statements should only be run with an internal executor that's created via this function. Release justification: Low risk, high benefit changes to existing functionality Release note: none
Configuration menu - View commit details
-
Copy full SHA for 22e7027 - Browse repository at this point
Copy the full SHA 22e7027View commit details -
filetable: use
CollectionFactory.TxnWithExecutor()
for DDL statementsfixes cockroachdb#76764 Release justification: Low risk, high benefit changes to existing functionality Release note: none
Configuration menu - View commit details
-
Copy full SHA for 3c44cad - Browse repository at this point
Copy the full SHA 3c44cadView commit details -
sql: migreate authorization_test to `CollectionFactory.TxnWithExecuto…
…r()` for DDLs This is part of the project to migrate existing DDL statements running with an internal executor to `descs.CollectionFactory()`. DDLs are only allowed to run with internal executor inited via this function. Release justification: Low risk, high benefit changes to existing functionality Release note: None
Configuration menu - View commit details
-
Copy full SHA for 5a4beb4 - Browse repository at this point
Copy the full SHA 5a4beb4View commit details -
sql: migrate create_external_connection to `planner.WithInternalExecu…
…tor()` for DDLs This commit is to migrate the existing DDLs to using `planner.WithInternalExecutor()`. DDLs with internal executors are only allowed if the latter is bounded with txn-realated metadata. Release justification: Low risk, high benefit changes to existing functionality Release note: none
Configuration menu - View commit details
-
Copy full SHA for cc0bbc8 - Browse repository at this point
Copy the full SHA cc0bbc8View commit details -
backupccl: migrate job restoration to `CollectionFactory.TxnWithExecu…
…tor()` for DDLs This commit is part of the project to migrate DDLs running with internal executor with the correct interface. DDLs are only allowed to run with internal executor that is bound to txn-related metadata. Release justification: Low risk, high benefit changes to existing functionality Release note: none
Configuration menu - View commit details
-
Copy full SHA for f2eb031 - Browse repository at this point
Copy the full SHA f2eb031View commit details -
backupccl: refactor
cleanupTempSystemTables()
We stripped `txn` from the parameter list in `cleanupTempSystemTables()`. It was run with not-nil txn by mistake, which is a mis-usage of running internal executor with DDLs. Release justification: bug fix Release note: none
Configuration menu - View commit details
-
Copy full SHA for e8a4d50 - Browse repository at this point
Copy the full SHA e8a4d50View commit details -
sql: migrate
deleteTempTables
to useplanner.WithInternalExecutor()
This is another DDL statement executed via an internal executor mal-inited. Change it to use the right interface. Release justification: Release note: none.
Configuration menu - View commit details
-
Copy full SHA for b458abe - Browse repository at this point
Copy the full SHA b458abeView commit details -
sql: require txn-related metadata if running DDLs with internal execu…
…tor with txn When using internal executor to run DDL statements under a not-nil outer txn, we require txn-related metadata (such as descriptor collections) to be passed to the internal executor from the outer caller too. This commit is to add a gate for this use case. Release justification: bug fix Release note: none
Configuration menu - View commit details
-
Copy full SHA for f362a8f - Browse repository at this point
Copy the full SHA f362a8fView commit details -
sql: add a space to a line to fix the lint
It was causing the lint in CI to fail. Release note: None
Configuration menu - View commit details
-
Copy full SHA for ebd6076 - Browse repository at this point
Copy the full SHA ebd6076View commit details