cockroachdb / cockroachdb/cockroach

kv: rollback to savepoint does not release locks acquired during sub-transaction

Open
#94,731 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.