Skip to content

sql: deflake TestPrepareInExplicitTransactionDoesNotDeadlock#161888

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
DrewKimball:deflake-test
Jan 28, 2026
Merged

sql: deflake TestPrepareInExplicitTransactionDoesNotDeadlock#161888
craig[bot] merged 1 commit intocockroachdb:masterfrom
DrewKimball:deflake-test

Conversation

@DrewKimball
Copy link
Copy Markdown
Collaborator

This commit modifies TestPrepareInExplicitTransactionDoesNotDeadlock to check the error code rather than matching against the error message, which is error-prone. This should stop the test from flaking.

Fixes #161803

Release note: None

@DrewKimball DrewKimball requested review from a team and michae2 and removed request for a team January 27, 2026 20:39
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@DrewKimball DrewKimball force-pushed the deflake-test branch 2 times, most recently from 5a468b5 to 00a2a2f Compare January 28, 2026 05:15
This commit modifies TestPrepareInExplicitTransactionDoesNotDeadlock
to check the error code rather than matching against the error message,
which is error-prone. This should stop the test from flaking.

Fixes cockroachdb#161803

Release note: None
@DrewKimball
Copy link
Copy Markdown
Collaborator Author

Probably don't need to backport this one right now, since it's quite rare.

Copy link
Copy Markdown
Collaborator

@michae2 michae2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: Nice fix!

@michae2 reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @DrewKimball).

@DrewKimball
Copy link
Copy Markdown
Collaborator Author

TFTR!

bors r=michae2

@craig
Copy link
Copy Markdown
Contributor

craig Bot commented Jan 28, 2026

@craig craig Bot merged commit 1b697d1 into cockroachdb:master Jan 28, 2026
27 checks passed
@DrewKimball DrewKimball deleted the deflake-test branch January 28, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sql: TestPrepareInExplicitTransactionDoesNotDeadlock failed

3 participants