cockroachdb / cockroachdb/cockroach
kv: rollback to savepoint does not release locks acquired during sub-transaction
Open
A-kv-transactions
A-sql-pgcompat
C-enhancement
P-3
T-kv
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
At the time of the original savepoint design, this was a deliberate decision. See [the RFC](https://github.com/cockroachdb/cockroach/blob/e3abcd5dcea63ad50d4f1b35628538e33e320748/docs/RFCS/20191014_savepoints.md#relationship-with-row-locks).
We should reconsider it, especially if we plan to use savepoints internally to support per-statement retries.
Jira issue: CRDB-23106
Contributor guide
Assessment
This issue has not been assessed yet.