Commit c6a3ee1
[#29239] YSQL: Guardrail to prevent autonomous txn in transaction block
Summary:
Some DDLs can run as autonomous transactions (i.e., not part of a
transaction block) even if transactional DDL mode
(ysql_yb_ddl_transaction_block_enabled) is on. Currently, the only
example is `CREATE INDEX CONCURRENTLY`.
Autonomous DDL transactions use the kDDL session on the local tserver proxy.
Currently, it is not possible to run an autonomous DDL transaction while a
regular transaction block is active (which uses the kPlain session on the local
tserver proxy). Some of our code relies on this fact. This revision adds
a check to ensure that this assumption is not violated.
Jira: DB-19011
Test Plan: Jenkins
Reviewers: stiwary
Reviewed By: stiwary
Subscribers: yql
Differential Revision: https://phorge.dev.yugabyte.com/D480271 parent 1c0ee11 commit c6a3ee1
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2647 | 2647 | | |
2648 | 2648 | | |
2649 | 2649 | | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
2650 | 2656 | | |
2651 | 2657 | | |
2652 | 2658 | | |
| |||
0 commit comments