cockroachdb / cockroachdb/cockroach
kvserver: EndTxn with Prepare=true are allowed to 1PC
Open
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
Assessment
This issue has not been assessed yet.