cockroachdb / cockroachdb/cockroach

sql: inject_retry_errors_enabled indefinitely adds errors if transaction has multiple statements

Open
#98,572 3 comments 0 reactions 0 assignees View on GitHub
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

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.