-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
backport-2.0: sql: stop using txn.OrigTimestamp to reset TableCollection #24874
Conversation
We use the transaction OrigTimestamp to figure out if a transaction is being retried, triggering a reset of TableCollection. This logic would get triggered when running PREPARE within a transaction, because PREPARE uses it's own transaction and thus has a different OrigTimestamp. Removed this logic because transaction retries trigger resetting the TableCollection in the new conn-executor code. fixes cockroachdb#24578 Release note sql: fix PREPARE hanging when run in the same transaction as a CREATE TABLE
@andreimatei rubberstamp? |
LGTM But a nit: please copy the commit message into the PR message (the merge commit message). I think the release notes script needs the release note there, and also it's much easier to find on github - otherwise you have to click a lot to get to any message. And a question about the original PR - why was the |
bors r+ |
@andreimatei this is a fix for #24578 |
bors r+ |
Not awaiting review |
24874: backport-2.0: sql: stop using txn.OrigTimestamp to reset TableCollection r=vivekmenezes a=vivekmenezes Backport 1/1 commits from #23816. /cc @cockroachdb/release --- sql: Stop using txn.OrigTimestamp to reset TableCollection We use the transaction OrigTimestamp to figure out if a transaction is being retried, triggering a reset of TableCollection. This logic would get triggered when running PREPARE within a transaction, because PREPARE uses it's own transaction and thus has a different OrigTimestamp. Removed this logic because transaction retries trigger resetting the TableCollection in the new conn-executor code. fixes #24578 Release note sql: fix PREPARE hanging when run in the same transaction as a CREATE TABLE possibly related #23718 Co-authored-by: Vivek Menezes <[email protected]>
Build succeeded |
Backport 1/1 commits from #23816.
/cc @cockroachdb/release
sql: Stop using txn.OrigTimestamp to reset TableCollection
We use the transaction OrigTimestamp to figure out if a
transaction is being retried, triggering a reset of
TableCollection. This logic would get triggered when
running PREPARE within a transaction, because PREPARE
uses it's own transaction and thus has a different
OrigTimestamp.
Removed this logic because transaction retries trigger
resetting the TableCollection in the new conn-executor code.
fixes #24578
Release note sql: fix PREPARE hanging when run in the same transaction
as a CREATE TABLE
possibly related #23718