cockroachdb / cockroachdb/cockroach

kvserver: EndTxn with Prepare=true are allowed to 1PC

Open
#153,513 0 comments 0 reactions 0 assignees View on GitHub
A-kv-transactions branch-master C-bug P-3 T-kv
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Describe the problem**

XA transactions send EndTxn requests with `Prepare=true` and `Commit=true`. If such an `EndTxn` request is in a batch otherwise eligible for 1-phase-commit, it will be erroneously one phase committed.

Note that such batches are only currently possible with buffered writes.

Jira issue: CRDB-54468

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.