Skip to content

kv: remove stale TODO about commit triggers#103863

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/commitTrigger
May 25, 2023
Merged

kv: remove stale TODO about commit triggers#103863
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/commitTrigger

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented May 24, 2023

Closes #18170.

As of c00ea84, Txn.PrepareForRetry is called for all transaction retries, regardless of whether they're automatically performed by Txn.exec or manually performed by the client. As a result, the TODO describing the need to reset commit triggers separately for user-directed retry attempts is no longer relevant.

Release note: None

Closes cockroachdb#18170.

As of c00ea84, `Txn.PrepareForRetry` is called for all transaction retries,
regardless of whether they're automatically performed by `Txn.exec` or manually
performed by the client. As a result, the TODO describing the need to reset
commit triggers separately for user-directed retry attempts is no longer
relevant.

Release note: None
@nvb nvb requested a review from miraradeva May 24, 2023 19:37
@nvb nvb requested a review from a team as a code owner May 24, 2023 19:37
@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented May 24, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@miraradeva miraradeva left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

Copy link
Copy Markdown
Contributor

@miraradeva miraradeva left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten)

@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented May 25, 2023

TFTR!

bors r=miraradeva

@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 25, 2023

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 25, 2023

Build succeeded:

@craig craig bot merged commit 2060b07 into cockroachdb:master May 25, 2023
@nvb nvb deleted the nvanbenschoten/commitTrigger branch May 26, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

client: txn commit triggers are reset in the wrong place

3 participants