cockroachdb / cockroachdb/cockroach
sql: inject_retry_errors_enabled indefinitely adds errors if transaction has multiple statements
Open
C-bug
O-community
T-sql-foundations
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
**Describe the problem**
I've found what appears to be a bug with `inject_retry_errors_enabled` session variable. I've created a test that shows the problem. If I add a SELECT statement to the transaction that has `inject_retry_errors_enabled` then the error is injected infinitely instead of the documented 3 times.
**To Reproduce**
https://gist.github.com/Randgalt/4cb3448d542c5b8257dec4b2949ef8a8
Jira issue: CRDB-25341
Epic CRDB-60942
Contributor guide
Assessment
This issue has not been assessed yet.